transforms.load(ImageEditor.class
.getResourceAsStream("transforms.properties"));
}
if (!Validator.isValid(name)) {
throw new ValidationException(Convert.toString(
"Nome de transformacao invalido [", name, "]"
));
}
String className = transforms.getProperty(name.trim());
if (!Validator.isValid(className)) {
throw new ValidationException(Convert.toString(
"Transformacao nao encontrada com o nome [", name, "]"
));
}
Class<?> clazz = Class.forName(className);