Result result = super.validate(cce);
try {
if (cce.getChoice().equals(StaticTest.DELETE)){
if (isReferencedByParent(cce)){
result.failed(
smh.getLocalString(
getClass().getName() + ".cannotDeleteReferencedProviderConfig",
"provider config (provider-id={0}) can not be removed. It is referenced by its parent message-security-config",
new Object[]{getProviderConfig(cce).getProviderId()}));
}
}
}
catch (Exception e){
_logger.log(Level.FINE, "domainxmlverifier.exception", e);
}
return result;