code: public Map < String, String > generate(Reader reader,
              String packageName) throws Xsd2ConverterException {
  
          XmlSchemaCollection schemaCol = new XmlSchemaCollection();
          XmlSchema xsd = schemaCol.read(new StreamSource(reader));
          return generate(xsd, packageName);
          
      }
docs: Given a COBOL annotated XML schema, produce a set of java classes (source
  code) used to convert mainframe data at runtime.
  
  @param reader reads the COBOL-annotated XML schema source (see legstar-cob2xsd)
  @param packageName the java package the generated classes should reside
  in
  @return a map of java class names to their source code
  @throws Xsd2ConverterException if generation fails