public static ISession getSession ( String resourceName ) throws ResourceNotExistingException , TTException { File storageFile = new File ( STORAGE_PATH ) ; ISession session = null ; if ( ! storageFile . exists ( ) ) { throw new ResourceNotExistingException ( ) ; } else { new StorageConfiguration ( storageFile ) ; IStorage storage = Storage . openStorage ( storageFile ) ; session = storage . getSession ( new SessionConfiguration ( resourceName , null ) ) ; } return session ; }
Retrieve a session from the system for the given Storagename