*/
public void validate(PropertyDefinition definition, String value, Properties properties) throws CodedException {
try {
super.validate(definition, value, properties);
} catch (CoreException ce) {
throw new CoreException(ErrorConstants.ERR_EMPTY_THEME,
ErrorConstants.CATEGORY_NAME,
ErrorConstants.BUNDLE_NAME,
null,
value,
PropertyClassManager.getInstance()
.getPropertyClass(ProfileProperties.NAME)
.getDefinition("ui.theme")
.getDefaultValue(),
null,
null);
}
File themeDirectory = new File(new File("webapp"), value.replace('/', File.separatorChar).replace('\\', File.separatorChar));
if (!themeDirectory.isDirectory()) {
throw new CoreException(ErrorConstants.ERR_INVALID_THEME,
ErrorConstants.CATEGORY_NAME,
ErrorConstants.BUNDLE_NAME,
null,
value);
}