if ((uriText.getText().length() == 0) && !editingDefault) {
throw ValidationException.required(uriText, "Please enter a URL.");
}
ExpressionEvaluator eval = new ExpressionEvaluatorImpl();
try {
eval.evaluate((String) nameText.getText(), String.class, new DefaultVariables(),
StaticFunctionMapper.getDefault());
} catch (Exception e) {
throw ValidationException.invalid(nameText, "Error evaluating EL expression:\n" + e.getMessage());
}
try {
eval.evaluate((String) uriText.getText(), String.class, new DefaultVariables(),
StaticFunctionMapper.getDefault());
} catch (Exception e) {
throw ValidationException.invalid(uriText, "Error evaluating EL expression:\n" + e.getMessage());
}