code: public Map < String, String > generate(File cobolFile,
              String cobolFileEncoding, String targetPackageName,
              final String xsltFileName) {
          try {
              Reader reader = cobolFileEncoding == null ? new InputStreamReader(
                      new FileInputStream(cobolFile)) : new InputStreamReader(
                      new FileInputStream(cobolFile), cobolFileEncoding);
              return generate(reader, targetPackageName, xsltFileName);
          } catch (UnsupportedEncodingException e) {
              throw new Xsd2ConverterException(e);
          } catch (FileNotFoundException e) {
              throw new Xsd2ConverterException(e);
          }
      }
docs: Given a COBOL copybook, produce a set of java classes (source code) used
  to convert mainframe data (matching the copybook) at runtime.
  
  @param cobolFile the COBOL copybook file
  @param cobolFileEncoding the COBOL copybook file character encoding
  @param targetPackageName the java package the generated classes should
  reside in
  @param xsltFileName an optional xslt to apply on the XML Schema
  @return a map of java class names to their source code