return merged;
EnvironmentEntriesMetaData envEntries = null;
EJBReferencesMetaData ejbRefs = null;
EJBReferencesMetaData jbossEjbRefs = null;
ServiceReferencesMetaData serviceRefs = null;
ServiceReferencesMetaData jbossServiceRefs = null;
ResourceReferencesMetaData resRefs = null;
ResourceReferencesMetaData jbossResRefs = null;
ResourceEnvironmentReferencesMetaData resEnvRefs = null;
ResourceEnvironmentReferencesMetaData jbossResEnvRefs = null;
MessageDestinationReferencesMetaData messageDestinationRefs = null;
MessageDestinationReferencesMetaData jbossMessageDestinationRefs = null;
PersistenceUnitReferencesMetaData persistenceUnitRefs = null;
LifecycleCallbacksMetaData postConstructs = null;
LifecycleCallbacksMetaData preDestroys = null;
if (environmentRefsGroup != null)
{
envEntries = environmentRefsGroup.getEnvironmentEntries();
ejbRefs = environmentRefsGroup.getEjbReferences();
serviceRefs = environmentRefsGroup.getServiceReferences();
resRefs = environmentRefsGroup.getResourceReferences();
resEnvRefs = environmentRefsGroup.getResourceEnvironmentReferences();
messageDestinationRefs = environmentRefsGroup.getMessageDestinationReferences();
persistenceUnitRefs = environmentRefsGroup.getPersistenceUnitRefs();
postConstructs = environmentRefsGroup.getPostConstructs();
preDestroys = environmentRefsGroup.getPreDestroys();
}
if (jbossEnvironmentRefsGroup != null)
{
jbossEjbRefs = jbossEnvironmentRefsGroup.getEjbReferences();
jbossServiceRefs = jbossEnvironmentRefsGroup.getServiceReferences();
jbossResRefs = jbossEnvironmentRefsGroup.getResourceReferences();
jbossResEnvRefs = jbossEnvironmentRefsGroup.getResourceEnvironmentReferences();
jbossMessageDestinationRefs = jbossEnvironmentRefsGroup.getMessageDestinationReferences();
}
EJBReferencesMetaData mergedEjbRefs = EJBReferencesMetaData.merge(jbossEjbRefs, ejbRefs, overridenFile, overrideFile, mustOverride);
if (mergedEjbRefs != null)
merged.setEjbReferences(mergedEjbRefs);
ServiceReferencesMetaData mergedServiceRefs = ServiceReferencesMetaData.merge(jbossServiceRefs, serviceRefs, overridenFile, overrideFile);
if (mergedServiceRefs != null)
merged.setServiceReferences(mergedServiceRefs);
ResourceReferencesMetaData mergedResRefs = ResourceReferencesMetaData.merge(jbossResRefs, resRefs, overridenFile, overrideFile, mustOverride);
if (mergedResRefs != null)