Configuration properties = (Configuration) getServletContext().getAttribute("properties"); //$NON-NLS-1$
// check validation is enabled
boolean shouldValidate = properties.getBoolean("widget.enable.validator");
if(!shouldValidate){
throw new ServiceUnavailableException();
}
//
// Get localized messages so we can return errors
//
Messages localizedMessages = LocaleHandler.localizeMessages(request);