protected Object getSession ( String id , int version , boolean isSessionAccess , boolean forceSessionRetrieval , Object xdCorrelator ) { if ( isSessionAccess ) { if ( version == - 1 ) { _store . refreshSession ( id , xdCorrelator ) ; } else { _store . refreshSession ( id , version , xdCorrelator ) ; } } ISession iSession = getSessionFromStore ( id , version , isSessionAccess , forceSessionRetrieval , xdCorrelator ) ; if ( iSession != null ) { if ( isSessionAccess ) { boolean stillValid = _store . checkSessionStillValid ( iSession , iSession . getLastAccessedTime ( ) ) ; if ( stillValid ) { iSession . incrementRefCount ( ) ; _sessionEventDispatcher . sessionAccessed ( iSession ) ; } else { iSession = null ; } } } else { if ( isSessionAccess ) { _sessionEventDispatcher . sessionAccessUnknownKey ( id ) ; } } return iSession ; }
forceSessionRetrieval can only be true when using applicationSessions