code: private void writeAttributeTypes(String name, FieldType[] types) throws IOException
     {
        m_writer.writeStartObject(name);
        for (FieldType field : types)
        {
           m_writer.writeNameValuePair(field.name().toLowerCase(), field.getDataType().getValue());
        }
        m_writer.writeEndObject();
     }
docs: Generates a mapping between attribute names and data types.
  
  @param name name of the map
  @param types types to write