@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...