code: static void generateMethodsAndCreateAttribute(Map<String, List<XsdAttribute>> createdAttributes, ClassWriter classWriter, XsdAttribute elementAttribute, String returnType, String className, String apiName) {
          XsdAsmAttributes.generateMethodsForAttribute(classWriter, elementAttribute, returnType, className,apiName);
          createAttribute(createdAttributes, elementAttribute);
      }
docs: Generates the required methods for adding a given attribute and creates the
  respective class, if needed.
  @param createdAttributes Information about attributes that were already created.
  @param classWriter The {@link ClassWriter} to write the methods.
  @param elementAttribute The attribute element.
  @param returnType The method return type.
  @param className The name of the class which will contain the method to add the attribute.
  @param apiName The name of the generated fluent interface.