@Override public void undeploy(DeploymentUnit unit) { unit.removeAttachment(JACC_ATTACHMENT_NAME); // unregister any XACML or ACL policies associated with the deployment unit. String contextId = unit.getSimpleName(); if (this.policyRegistration != null) { this.policyRegistration.deRegisterPolicy(contextId, PolicyRegistration.XACML); this.policyRegistration.deRegisterPolicy(contextId, PolicyRegistration.ACL); } }