//
// return String.valueOf(value);
// }
// }
if (principal != null) {
User user = (User) principal;
if (user != null && user.get(property) != null) {
return String.valueOf(user.get(property));
}
}
return "";
// property not found, throw
//throw new TemplateModelException("Property [" + property + "] not found in principal of type [" + principal.getClass().getName() + "]");