public static boolean isJaxrsDeployment ( DeploymentUnit deploymentUnit ) { DeploymentUnit deployment = deploymentUnit . getParent ( ) == null ? deploymentUnit : deploymentUnit . getParent ( ) ; Boolean val = deployment . getAttachment ( ATTACHMENT_KEY ) ; return val != null && val ; }
JAX - RS annotations are found in the deployment especially if it s an EAR one )