code: private void addClass(URLClassLoader loader, JarEntry jarEntry, XMLStreamWriter writer, boolean mapClassMethods) throws ClassNotFoundException, XMLStreamException, IntrospectionException
     {
        String className = jarEntry.getName().replaceAll("\\.class", "").replaceAll("/", ".");
        writer.writeStartElement("class");
        writer.writeAttribute("name", className);
  
        Set<Method> methodSet = new HashSet<Method>();
        Class<?> aClass = loader.loadClass(className);
  
        processProperties(writer, methodSet, aClass);
  
        if (mapClassMethods && !Modifier.isInterface(aClass.getModifiers()))
        {
           processClassMethods(writer, aClass, methodSet);
        }
        writer.writeEndElement();
     }
docs: Add an individual class to the map file.
  
  @param loader jar file class loader
  @param jarEntry jar file entry
  @param writer XML stream writer
  @param mapClassMethods true if we want to produce .Net style class method names
  @throws ClassNotFoundException
  @throws XMLStreamException
  @throws IntrospectionException