code: private void createCodeFormatter() throws MojoExecutionException {
          Map<String, String> javaFormattingOptions = getFormattingOptions(this.configFile);
          if (javaFormattingOptions != null) {
              this.javaFormatter.init(javaFormattingOptions, this);
          }
          Map<String, String> jsFormattingOptions = getFormattingOptions(this.configJsFile);
          if (jsFormattingOptions != null) {
              this.jsFormatter.init(jsFormattingOptions, this);
          }
          if (configHtmlFile != null) {
              this.htmlFormatter.init(getOptionsFromPropertiesFile(configHtmlFile), this);
          }
          if (configXmlFile != null) {
              Map<String, String> xmlFormattingOptions = getOptionsFromPropertiesFile(configXmlFile);
              xmlFormattingOptions.put("lineending", this.lineEnding.getChars());
              this.xmlFormatter.init(xmlFormattingOptions, this);
          }
          if (configJsonFile != null) {
              Map<String, String> jsonFormattingOptions = getOptionsFromPropertiesFile(configJsonFile);
              jsonFormattingOptions.put("lineending", this.lineEnding.getChars());
              this.jsonFormatter.init(jsonFormattingOptions, this);
          }
          if (configCssFile != null) {
              this.cssFormatter.init(getOptionsFromPropertiesFile(configCssFile), this);
          }
          // stop the process if not config files where found
          if (javaFormattingOptions == null && jsFormattingOptions == null && configHtmlFile == null
                  && configXmlFile == null && configCssFile == null) {
              throw new MojoExecutionException(
                      "You must provide a Java, Javascript, HTML, XML, JSON, or CSS configuration file.");
          }
      }
docs: Create a {@link CodeFormatter} instance to be used by this mojo.
  
  @throws MojoExecutionException
  the mojo execution exception