code: public static PersistenceManager createPersistenceManager() {
          if (Config.isUnitTestsEnabled()) {
              pmf = (JDOPersistenceManagerFactory)JDOHelper.getPersistenceManagerFactory(JdoProperties.unit(), "Alpine");
          }
          if (pmf == null) {
              throw new IllegalStateException("Context is not initialized yet.");
          }
          return pmf.getPersistenceManager();
      }
docs: Creates a new JDO PersistenceManager.
  @return a PersistenceManager