binder.registerCustomEditor(SystemNotificationType.class, new EnumEditor(SystemNotificationType.class));
binder.registerCustomEditor(SystemNotificationSeverity.class, new EnumEditor(SystemNotificationSeverity.class));
binder.registerCustomEditor(List.class, "types", new CustomCollectionEditor(List.class) {
@Override
protected Object convertElement(Object element) {
SystemNotificationType type = null;
if (element != null) {
try {
type = SystemNotificationType.valueOf((String) element);
} catch (Exception ex) {
log.error(String.format("Error converting element to SystemNotificationType: %s", element), ex);