Session getStorageSession ( ) throws RepositoryException { try { ManageableRepository repository = getWorkingRepository ( ) ; String workspaceName = storageWorkspace ; if ( workspaceName == null ) { workspaceName = repository . getConfiguration ( ) . getDefaultWorkspaceName ( ) ; } return repository . getSystemSession ( workspaceName ) ; } catch ( RepositoryConfigurationException e ) { throw new RepositoryException ( "Can not get system session" , e ) ; } }
Return system Session to org - service storage workspace . For internal use only .