startupLogger.debug("Searching for annotated application exceptions (see OPENEJB-980)");
final List<Class<?>> appExceptions = finder.findAnnotatedClasses(ApplicationException.class);
for (final Class<?> exceptionClass : appExceptions) {
startupLogger.debug("...handling " + exceptionClass);
final ApplicationException annotation = exceptionClass.getAnnotation(ApplicationException.class);
if (assemblyDescriptor.getApplicationException(exceptionClass) == null) {
startupLogger.debug("...adding " + exceptionClass + " with rollback=" + annotation.rollback());
assemblyDescriptor.addApplicationException(exceptionClass, annotation.rollback(), annotation.inherited());
} else {
mergeApplicationExceptionAnnotation(assemblyDescriptor, exceptionClass, annotation);
}
}