@lukasz-m I followed exactly your improvements in code and did the
session creation as in the approach you said. Added suppress warnings as
well. But now Sonar rules are flagging as below and that too critical.
Session should be logged out in finally block.,Code
Smell,Critical,10min,AEM Rules:AEM-7 From my understanding we cannot do
this , since we need this session to be active for the listener to be
active and trigger the event , correct? It is not picking the suppress
warnings as well. Any th...