// Deregister yourself with the security management
if (securityManagement instanceof JNDIBasedSecurityManagement)
{
JNDIBasedSecurityManagement jbs = (JNDIBasedSecurityManagement) securityManagement;
jbs.deregisterJaasSecurityDomainInstance(getSecurityDomain());
}
}
/**
* <p>