}
public void merge(JBossAppMetaData override, EarMetaData original)
{
super.merge(override, original);
Ear5xMetaData original5x = null;
if(original instanceof Ear5xMetaData)
original5x = (Ear5xMetaData) original;
if(override != null)
{
if(override.dtdPublicId != null)
this.dtdPublicId = override.dtdPublicId;
if(override.dtdSystemId != null)
this.dtdSystemId = override.dtdSystemId;
if(override.version != null)
this.version = override.version;
if(override.securityDomain != null)
setSecurityDomain(override.securityDomain);
if(override.loaderRepository != null)
setLoaderRepository(override.loaderRepository);
if(override.unauthenticatedPrincipal != null)
setUnauthenticatedPrincipal(override.unauthenticatedPrincipal);
if(override.unauthenticatedPrincipal != null)
setUnauthenticatedPrincipal(override.unauthenticatedPrincipal);
if(override.libraryDirectory != null)
setLibraryDirectory(override.libraryDirectory);
else if(original5x != null && original5x.getLibraryDirectory() != null)
setLibraryDirectory(original5x.getLibraryDirectory());
if(override.jmxName != null)
setJmxName(override.jmxName);
}
else if(original5x != null && original5x.getLibraryDirectory() != null)
setLibraryDirectory(original5x.getLibraryDirectory());
if(modules == null)
modules = new ModulesMetaData();
ModulesMetaData overrideModules = null;
ModulesMetaData originalModules = null;