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)
{
if(securityRoles == null)
securityRoles = new SecurityRolesMetaData();
securityRoles.merge(overrideRoles, originalRoles);
}
if(originalPermissions != null || overridePermissions != null)
{
if(methodPermissions == null)
methodPermissions = new MethodPermissionsMetaData();
methodPermissions.merge(overridePermissions, originalPermissions);
}
if(originalTransactions != null || overrideTransactions != null)
{
if(containerTransactions == null)
containerTransactions = new ContainerTransactionsMetaData();
containerTransactions.merge(overrideTransactions, originalTransactions);
}
if(originalInterceptors != null || overrideInterceptors != null)
{
if(interceptorBindings == null)
interceptorBindings = new InterceptorBindingsMetaData();
interceptorBindings.merge(overrideInterceptors, originalInterceptors);
}
if(originalDestinations != null || overrideDestinations != null)
{