code: private Map<String, String> getOptionsFromConfigFile(String newConfigFile) throws MojoExecutionException {
  
          this.getLog().debug("Using search path at: " + this.basedir.getAbsolutePath());
          this.resourceManager.addSearchPath(FileResourceLoader.ID, this.basedir.getAbsolutePath());
  
          try (InputStream configInput = this.resourceManager.getResourceAsInputStream(newConfigFile)) {
              return new ConfigReader().read(configInput);
          } catch (ResourceNotFoundException e) {
              throw new MojoExecutionException("Cannot find config file [" + newConfigFile + "]");
          } catch (IOException e) {
              throw new MojoExecutionException("Cannot read config file [" + newConfigFile + "]", e);
          } catch (SAXException e) {
              throw new MojoExecutionException("Cannot parse config file [" + newConfigFile + "]", e);
          } catch (ConfigReadException e) {
              throw new MojoExecutionException(e.getMessage(), e);
          }
      }
docs: Read config file and return the config as {@link Map}.
  
  @return the options from config file
  @throws MojoExecutionException
  the mojo execution exception