@Override
public void render(Object bound, Respond respond) {
if (!respond.getErrors().isEmpty()) {
Localizer.Localization localization = null;
ResourceBundle resourceBundle = bound.getClass().getAnnotation(ResourceBundle.class);
if (resourceBundle != null) {
Map<Locale, Localizer.Localization> localizerMap = localizationsMap.get(resourceBundle.value());
if (localizerMap != null) {
localization = localizerMap.get(locale);
}
if (localization == null) {
localization = Localizer.defaultLocalizationFor(resourceBundle.value());
}
}
respond.write("<div class=\"errors\">");
respond.write("<ul>");
for (String errorKey : respond.getErrors()) {