* @param context the deployment unit context
* @throws DeploymentUnitProcessingException
*/
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException {
final ConnectorXmlDescriptor connectorXmlDescriptor = context.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
final IronJacamarXmlDescriptor ironJacamarXmlDescriptor = context
.getAttachment(IronJacamarXmlDescriptor.ATTACHMENT_KEY);
final Module module = context.getAttachment(ModuleDeploymentProcessor.MODULE_ATTACHMENT_KEY);
if (module == null)
throw new DeploymentUnitProcessingException("Failed to get module attachment for deployment: " + context.getName());
final ClassLoader classLoader = module.getClassLoader();
Connector cmd = connectorXmlDescriptor != null ? connectorXmlDescriptor.getConnector() : null;
final IronJacamar ijmd = ironJacamarXmlDescriptor != null ? ironJacamarXmlDescriptor.getIronJacamar() : null;
try {
// Annotation merging
Annotations annotator = new Annotations();
AnnotationRepository repository = new JandexAnnotationRepositoryImpl(