code: public void execute(Properties configProps, final File cobolFile,
              final String cobolFileEncoding, final File target,
              final String xsltFileName) throws MojoExecutionException {
          try {
              getLog().info("Processing COBOL file " + cobolFile);
              Cob2XsdIO cob2XsdIO = new Cob2XsdIO(new Cob2XsdConfig(configProps));
              File xsdFile = cob2XsdIO.translate(cobolFile, cobolFileEncoding, target,
                      targetNamespacePrefix, xsltFileName);
              getLog().info("COBOL copybook translated to XML schema " + xsdFile);
          } catch (RecognizerException e) {
              throw new MojoExecutionException("Translation failed for "
                      + cobolFile.getAbsolutePath(), e);
          }
      }
docs: Translates a single COBOL source file.
  
  @param configProps configuration parameters
  @param cobolFile COBOL source file
  @param cobolFileEncoding the COBOL file character encoding
  @param target target file or folder
  @param targetNamespacePrefix the output XML schemas target namespace
  prefix
  @param xsltFileName an optional xslt to apply on the XML Schema
  @throws MojoExecutionException if parser fails