Class clazz = definition.getValidatorClass();
writer.println(" Map<String, Object> attributes" + i + " = new HashMap<String, Object>();");
Attributes attributes = definition.getAttributes();
for (String name : attributes.getNames()) {
Object value = attributes.get(name);
indent(writer, 3);
String varName = writeAnnotationValue(writer, context, value);
outdent(writer, 3);
writer.println(" attributes" + i + ".put(\"" + name + "\", " + varName + ");");
}