Result result = super.validate(cce); // Before doing custom validation do basic validation
if(cce.getChoice().equals(StaticTest.ADD) || cce.getChoice().equals(StaticTest.VALIDATE)) {
Domain domain = (Domain)cce.getObject();
/*
String locale = domain.getLocale();
validateAttribute(ServerTags.LOCALE, locale, result);
*/
// check for existence of elements groups, node-controllers, lb-configurations, load-balancers
// if(domain.getClusters() != null)
// result.failed(smh.getLocalString(getClass().getName() + ".invalidGroupsElement",
// "Clusters in domain not allowed in PE"));
// if(domain.getLbConfigs() != null)
// result.failed(smh.getLocalString(getClass().getName() + ".invalidLoadbalancersElement",
// "Loadbalancers in domain not allowed in PE"));
}
if(cce.getChoice().equals(StaticTest.UPDATE))
validateAttribute(cce.getName(), (String)cce.getObject(), result);
return result;