processInjectionTargets(classLoader, deploymentReflectionIndex, puRef, bindingDescription, EntityManagerFactory.class);
bindingDescription.setBindingType(EntityManagerFactory.class.getName());
if (!isEmpty(lookup)) {
if (componentDescription != null) {
bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, componentDescription));
} else {
bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, moduleDescription));
}
} else if (!isEmpty(persistenceUnitName)) {
bindingDescription.setReferenceSourceDescription(getPersistenceUnitBindingSource(deploymentUnit,persistenceUnitName));
} else {
bindingDescription.setReferenceSourceDescription(new LazyBindingSourceDescription());