code: public boolean generate(File cobolFile, String cobolFileEncoding,
              final File targetFolder, String targetPackageName,
              final String xsltFileName) {
          try {
              log.info("COBOL to Avro generation for: {}", cobolFile);
              Reader reader = cobolFileEncoding == null ? new InputStreamReader(
                      new FileInputStream(cobolFile)) : new InputStreamReader(
                      new FileInputStream(cobolFile), cobolFileEncoding);
              String targetSchemaName = FilenameUtils.getBaseName(cobolFile
                      .getName().toLowerCase());
              return generate(reader, targetFolder, targetPackageName,
                      targetSchemaName, xsltFileName);
          } catch (UnsupportedEncodingException e) {
              throw new Cob2AvroGeneratotException(e);
          } catch (FileNotFoundException e) {
              throw new Cob2AvroGeneratotException(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 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
  @return a map of java class names to their source code