code: public void generate(Reader cobolReader,
              File targetFolder, String targetPackageName,
              final String xsltFileName) {
  
          log.info("Step 1: translate COBOL copybook to annotated XML schema");
          String xmlSchemaSource = cob2xsd.translate(cobolReader,
                  NamespaceUtils.toNamespace(targetPackageName), xsltFileName);
  
          log.info("Step 2: invoke JAXB-XJC utility");
          xjc(xmlSchemaSource, targetFolder, targetPackageName);
  
          Map < String, String > code = new HashMap < String, String >();
          code.putAll(xsd2CobolTypes.generate(xmlSchemaSource, targetPackageName));
          code.putAll(xsd2JaxbWrappers.generate(xmlSchemaSource,
                  targetPackageName));
          outputCode(code, targetFolder, targetPackageName);
  
      }
docs: Given a COBOL copybook in a reader, produce a set of java classes (source
  code) used to convert mainframe data (matching the copybook) to JAXB
  instances.
  
  @param cobolReader the COBOL copybook reader
  @param targetFolder the target folder
  @param targetPackageName the java package the generated classes should
  reside in
  @param xsltFileName an optional xslt to apply on the XML Schema