/* */ }
/* 161 */ super.merge(jbossEnv, specEnv, overridenFile, overrideFile, mustOverride);
/* */
/* 163 */ EJBLocalReferencesMetaData ejbLocalRefs = null;
/* 164 */ EJBLocalReferencesMetaData jbossEjbLocalRefs = null;
/* 165 */ PersistenceContextReferencesMetaData specPersistenceContextRefs = null;
/* 166 */ PersistenceContextReferencesMetaData jbossPersistenceContextRefs = null;
/* */
/* 168 */ if (specEnv != null)
/* */ {
/* 170 */ ejbLocalRefs = specEnv.getEjbLocalReferences();
/* 171 */ specPersistenceContextRefs = specEnv.getPersistenceContextRefs();
/* */ }
/* */
/* 174 */ if (jbossEnv != null)
/* */ {
/* 176 */ jbossEjbLocalRefs = jbossEnv.getEjbLocalReferences();
/* 177 */ jbossPersistenceContextRefs = jbossEnv.getPersistenceContextRefs();
/* */ }
/* */ else
/* */ {
/* 182 */ jbossEjbLocalRefs = getEjbLocalReferences();
/* 183 */ jbossPersistenceContextRefs = getPersistenceContextRefs();
/* */ }
/* */
/* 186 */ EJBLocalReferencesMetaData mergedEjbLocalRefs = EJBLocalReferencesMetaData.merge(jbossEjbLocalRefs, ejbLocalRefs, overridenFile, overrideFile);
/* 187 */ if (mergedEjbLocalRefs != null) {
/* 188 */ setEjbLocalReferences(mergedEjbLocalRefs);
/* */ }
/* */
/* 191 */ ResourceReferencesMetaData jbossResRefs = getResourceReferences();
/* 192 */ if ((resourceMgrs != null) && (jbossResRefs != null))
/* */ {
/* 194 */ for (ResourceReferenceMetaData ref : jbossResRefs)
/* */ {
/* 196 */ ResourceManagerMetaData mgr = (ResourceManagerMetaData)resourceMgrs.get(ref.getResourceName());
/* 197 */ if (mgr != null)
/* */ {
/* 199 */ if (mgr.getResJndiName() != null)
/* 200 */ ref.setJndiName(mgr.getResJndiName());
/* 201 */ else if (mgr.getResUrl() != null) {
/* 202 */ ref.setResUrl(mgr.getResUrl());
/* */ }
/* */ }
/* */ }
/* */ }
/* 207 */ PersistenceContextReferencesMetaData mergedPcRefs = PersistenceContextReferencesMetaData.merge(jbossPersistenceContextRefs, specPersistenceContextRefs, overridenFile, overrideFile);
/* */
/* 209 */ if (mergedPcRefs != null)
/* 210 */ setPersistenceContextRefs(mergedPcRefs);
/* */ }