code: public EntityContainer getEntityContainer(boolean ignorenull) throws PMException {
          if (ignorenull) {
              return entityContainer;
          }
          if (entityContainer == null) {
              throw new PMException("pm_core.entity.not.found");
          }
          return entityContainer;
      }
docs: Returns the entity container
  
  @param ignorenull If true, does not throws an exception on missing
  container
  @return The container
  @throws PMException