new PersistenceException("Implementation error - incorrect filter specified while looking up EMF", isEx);
}
if ((refs != null) && (refs.length != 0)) {
debug("Persistence class - lookupEMFBuilder, found service ", unitName, " in registry");
// Take the first one and create an EMF from it
EntityManagerFactoryBuilder builder = (EntityManagerFactoryBuilder)ctx.getService(refs[0]);
return builder.createEntityManagerFactory(props);
}
// Didn't find anything under the given name
debug("Persistence class - lookupEMFBuilder, *** EMFBuilder service ", unitName,
" not found in registry ***");
return null;