final TextProvider textProvider = DefaultTextProvider.INSTANCE;
Map<String, Messages> fieldMap = new HashMap<String, Messages>();
Map<Severity, List<String>> severityMap = new EnumMap<Severity, List<String>>(Severity.class);
public Messages forField(String fieldName) {
Messages forField = fieldMap.get(fieldName);
if (forField == null) {
forField = new MessagesImpl();
fieldMap.put(fieldName, forField);
}
return forField;