if (factory == null) {
throw new IllegalArgumentException("Persistence unit " + referenceInfo.persistenceUnitName + " for persistence-unit-ref " +
referenceInfo.referenceName + " not found");
}
Reference reference = new PersistenceUnitReference(factory);
bindings.put(normalize(referenceInfo.referenceName), reference);
}
for (PersistenceContextReferenceInfo contextInfo : jndiEnc.persistenceContextRefs) {
if (contextInfo.location != null){