@Override
public void addEntityManagerReferenceDescriptor
(EntityManagerReferenceDescriptor reference) {
try {
EntityManagerReferenceDescriptor existing =
this.getEntityManagerReferenceByName(reference.getName());
for( InjectionTarget next : reference.getInjectionTargets() ) {
existing.addInjectionTarget(next);
}
} catch(IllegalArgumentException e) {
if (getEjbBundleDescriptor() != null) {
reference.setReferringBundleDescriptor
(getEjbBundleDescriptor());