@Override
public void start(StartContext context) throws StartException {
if (log.isDebugEnabled())
log.debug("Starting SecurityDomainService(" + name + ")");
if (applicationPolicy != null) {
final ApplicationPolicyRegistration applicationPolicyRegistration = (ApplicationPolicyRegistration) configurationValue
.getValue();
applicationPolicyRegistration.addApplicationPolicy(applicationPolicy.getName(), applicationPolicy);
}
final JNDIBasedSecurityManagement securityManagement = (JNDIBasedSecurityManagement) securityManagementValue.getValue();
Object cacheFactory = null;
if ("infinispan".equals(cacheType)) {
cacheFactory = cacheManagerValue.getValue();