@ PreDestroy public void stopListening ( ) throws RepositoryException { try { LOGGER . debug ( "Destroying an observer for JCR events..." ) ; session . getWorkspace ( ) . getObservationManager ( ) . removeEventListener ( this ) ; } finally { session . logout ( ) ; } }
logout of the session