private final boolean registerRuntimeOnly;
private final List<AccessConstraintDefinition> accessConstraints;
SecurityDomainResourceDefinition(boolean registerRuntimeOnly) {
super(SecurityExtension.SECURITY_DOMAIN_PATH,
SecurityExtension.getResourceDescriptionResolver(Constants.SECURITY_DOMAIN), SecurityDomainAdd.INSTANCE,
<BUG>new ServiceRemoveStepHandler(SecurityDomainService.SERVICE_NAME, SecurityDomainAdd.INSTANCE, Capabilities.SECURITY_REALM_RUNTIME_CAPABILITY));
this.registerRuntimeOnly = registerRuntimeOnly;</BUG>
ApplicationTypeConfig atc = new ApplicationTypeConfig(SecurityExtension.SUBSYSTEM_NAME, Constants.SECURITY_DOMAIN);
AccessConstraintDefinition acd = new ApplicationTypeAccessConstraintDefinition(atc);
this.accessConstraints = Arrays.asList(SensitiveTargetAccessConstraintDefinition.SECURITY_DOMAIN, acd);

private final boolean registerRuntimeOnly;
private final List<AccessConstraintDefinition> accessConstraints;
SecurityDomainResourceDefinition(boolean registerRuntimeOnly) {
super(SecurityExtension.SECURITY_DOMAIN_PATH,
SecurityExtension.getResourceDescriptionResolver(Constants.SECURITY_DOMAIN), SecurityDomainAdd.INSTANCE,
new SecurityDomainRemove(SecurityDomainService.SERVICE_NAME, SecurityDomainAdd.INSTANCE));
this.registerRuntimeOnly = registerRuntimeOnly;
ApplicationTypeConfig atc = new ApplicationTypeConfig(SecurityExtension.SUBSYSTEM_NAME, Constants.SECURITY_DOMAIN);
AccessConstraintDefinition acd = new ApplicationTypeAccessConstraintDefinition(atc);
this.accessConstraints = Arrays.asList(SensitiveTargetAccessConstraintDefinition.SECURITY_DOMAIN, acd);
