public void merge(JBossAssemblyDescriptorMetaData override, JBossAssemblyDescriptorMetaData original)
{
super.merge(override, original);
ApplicationExceptionsMetaData originalExceptions = null;
SecurityRolesMetaData originalRoles = null;
MethodPermissionsMetaData originalPermissions = null;
ContainerTransactionsMetaData originalTransactions = null;
InterceptorBindingsMetaData originalInterceptors = null;
MessageDestinationsMetaData originalDestinations = null;
ExcludeListMetaData originalExclude = null;
if(original != null)
{
originalExceptions = original.applicationExceptions;
originalRoles = original.securityRoles;
originalPermissions = original.methodPermissions;
originalTransactions = original.containerTransactions;
originalInterceptors = original.interceptorBindings;
originalDestinations = original.messageDestinations;
originalExclude = original.excludeList;
}
ApplicationExceptionsMetaData overrideExceptions = null;
SecurityRolesMetaData overrideRoles = null;
MethodPermissionsMetaData overridePermissions = null;
ContainerTransactionsMetaData overrideTransactions = null;
InterceptorBindingsMetaData overrideInterceptors = null;
MessageDestinationsMetaData overrideDestinations = null;
ExcludeListMetaData overrideExclude = null;
if(override != null)
{
overrideExceptions = override.applicationExceptions;
overrideRoles = override.securityRoles;
overridePermissions = override.methodPermissions;
overrideTransactions = override.containerTransactions;
overrideInterceptors = override.interceptorBindings;
overrideDestinations = override.messageDestinations;
overrideExclude = override.excludeList;
}
if(originalExceptions != null || overrideExceptions != null)
{
if(applicationExceptions == null)
applicationExceptions = new ApplicationExceptionsMetaData();
applicationExceptions.merge(overrideExceptions, originalExceptions);
}
if(originalRoles != null || overrideRoles != null)
{