code: 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;
      }
docs: Retrieve a session from the system for the given Storagename
  
  @param resourceName
  @return a new {@link ISession} for the resource
  @throws ResourceNotExistingException
  @throws TTException