code: public boolean generate(Reader cobolReader, final File targetFolder,
              String targetPackageName, String targetSchemaName,
              final String xsltFileName) {
          try {
  
              String xmlSchemaSource = generateXmlSchema(cobolReader,
                      NamespaceUtils.toNamespace(targetPackageName),
                      targetSchemaName, xsltFileName);
              serializeToFile(targetFolder, XSD_TARGET_SUB_FOLDER,
                      targetSchemaName, XSD_FILE_EXTENSION, xmlSchemaSource);
  
              Map < String, String > codeMap = generateConverterClasses(
                      xmlSchemaSource, targetPackageName);
              String subFolder = targetPackageName == null ? ""
                      : (targetPackageName.replace(".", "/") + "/");
              for (Entry < String, String > entry : codeMap.entrySet()) {
                  serializeToFile(targetFolder, JAVA_TARGET_SUB_FOLDER, subFolder
                          + entry.getKey(), JAVA_FILE_EXTENSION, entry.getValue());
              }
  
              String avroSchemaSource = generateAvroSchema(xmlSchemaSource,
                      targetPackageName, targetSchemaName);
              File avroSchemaFile = serializeToFile(targetFolder,
                      AVSC_TARGET_SUB_FOLDER, targetSchemaName,
                      AVSC_FILE_EXTENSION, avroSchemaSource);
  
              avroCompile(avroSchemaSource, avroSchemaFile, new File(
                      targetFolder, JAVA_TARGET_SUB_FOLDER));
  
              log.info("COBOL to Avro generation succeeded");
              return true;
  
          } catch (Exception e) {
              log.error("COBOL to Avro generation failed for: {}",
                      targetSchemaName, e);
              return false;
          }
  
      }
docs: Generate the LegStar Avro artifacts.
  <p/>
  The process goes through the following steps:
  <ul>
  <li>Translate the COBOL copybook to XML Schema</li>
  <li>Generate LegStar converter support classes</li>
  <li>Produce the avro schema</li>
  <li>Parse and compile the Avro schema</li>
  <li>Generate Avro specific classes</li>
  </ul>
  
  @param cobolReader
  @param targetFolder
  @param targetPackageName
  @param targetSchemaName
  @param xsltFileName
  @return