AssemblyDescriptorMetaData assemblyDescriptor = ejbJarMetaData.getAssemblyDescriptor();
if (assemblyDescriptor != null) {
// get hold of the ejb jar description (to which we'll be adding this assembly description metadata)
final EjbJarDescription ejbJarDescription = deploymentUnit.getAttachment(EjbDeploymentAttachmentKeys.EJB_JAR_DESCRIPTION);
// process application-exception(s)
ApplicationExceptionsMetaData applicationExceptions = assemblyDescriptor.getApplicationExceptions();
if (applicationExceptions != null && !applicationExceptions.isEmpty()) {
for (ApplicationExceptionMetaData applicationException : applicationExceptions) {
String exceptionClassName = applicationException.getExceptionClass();
boolean rollback = applicationException.isRollback();
// by default inherited is true
boolean inherited = applicationException.isInherited() == null ? true : applicationException.isInherited();