code: public static JNRPEConfiguration createConfiguration(final String configurationFilePath) throws ConfigurationException {
          JNRPEConfiguration conf = null;
  
          if (configurationFilePath.toLowerCase().endsWith(".conf") || configurationFilePath.toLowerCase().endsWith(".ini")) {
              conf = new IniJNRPEConfiguration();
          } else if (configurationFilePath.toLowerCase().endsWith(".xml")) {
              conf = new XmlJNRPEConfiguration();
          }
  
          if (conf == null) {
              throw new ConfigurationException("Config file name must end with either '.ini' " 
                                  + "(ini file) or '.xml' (xml file). Received file name is : " + new File(configurationFilePath).getName());
          }
  
          conf.load(new File(configurationFilePath));
  
          return conf;
      }
docs: Creates a configuration object from the passed in configuration file.
  
  @param configurationFilePath
  Path to the configuration file
  @return The configuration object
  @throws ConfigurationException
  -