// 1. validate JEXL expressions in user and role templates
if (taskTO.getUserTemplate() != null) {
UserTO template = taskTO.getUserTemplate();
if (StringUtils.isNotBlank(template.getUsername()) && !JexlUtil.isExpressionValid(template.getUsername())) {
sce.addElement("Invalid JEXL: " + template.getUsername());
}
if (StringUtils.isNotBlank(template.getPassword()) && !JexlUtil.isExpressionValid(template.getPassword())) {
sce.addElement("Invalid JEXL: " + template.getPassword());
}