new Object[] {emf, properties});
}
EntityManagerFactory factory = (EntityManagerFactory) emf.getBundle().getBundleContext().getService(emf);
if(type == PersistenceContextType.TRANSACTION || type == null)
return new JTAEntityManager(factory, properties, registry, activeCount, this);
else {
_logger.error("There is currently no support for extended scope EntityManagers");
return null;
}