@lukasz-m Thanks a lot for the above suggestions and explanation.
private Session session But in my code I was already using session
object as a private variable as the same in your above suggestion and
Adobe Sonar rules flagged this as below critical finding Usage of
javax.jcr.Session as a field is not thread safe.,Bug,Critical Hence, I
have modified my code as in my initial description to fix that issue so
that session object is not created as a variable and I created it inside
the method i ne...