code: private void addProperty(XMLStreamWriter writer, String name, Class<?> propertyType, String readMethod, String writeMethod) throws XMLStreamException
     {
        if (name.length() != 0)
        {
           writer.writeStartElement("property");
  
           // convert property name to .NET style (i.e. first letter uppercase)
           String propertyName = name.substring(0, 1).toUpperCase() + name.substring(1);
           writer.writeAttribute("name", propertyName);
  
           String type = getTypeString(propertyType);
  
           writer.writeAttribute("sig", "()" + type);
           if (readMethod != null)
           {
              writer.writeStartElement("getter");
              writer.writeAttribute("name", readMethod);
              writer.writeAttribute("sig", "()" + type);
              writer.writeEndElement();
           }
           if (writeMethod != null)
           {
              writer.writeStartElement("setter");
              writer.writeAttribute("name", writeMethod);
              writer.writeAttribute("sig", "(" + type + ")V");
              writer.writeEndElement();
           }
  
           writer.writeEndElement();
        }
     }
docs: Add a simple property to the map file.
  
  @param writer xml stream writer
  @param name property name
  @param propertyType property type
  @param readMethod read method name
  @param writeMethod write method name
  @throws XMLStreamException