code: @SuppressWarnings("rawtypes")
    @Override
    public EntityManagerFactory createEntityManagerFactory(String emName, Map properties) {
      PersistenceUnitInfo pUnit = new CadmiumPersistenceUnitInfo() ;
      return createContainerEntityManagerFactory(pUnit, properties);
    }
docs: Uses Hibernate's Reflections and the properties map to override defaults to create a
  EntityManagerFactory without the need of any persistence.xml file.