/**
  * Returns the Hadoop configuration path.
  *
  * @return the Hadoop configuration path, or {@code null} if it is not found
  * @see #getExplicitConfigurationPath()
  */
 public URL getConfigurationPath() {
   if (explicitConfigurationPath != null) {
     try {
       return explicitConfigurationPath.toURI().toURL();
     } catch (MalformedURLException e) {
       LOG.error(
           MessageFormat.format(
               Messages.getString(
                   "ConfigurationFactory.errorInvalidHadoopConfigurationPath"), //$NON-NLS-1$
               explicitConfigurationPath),
           e);
     }
   }
   return ConfigurationProvider.getConfigurationPath(environmentVariables);
 }
 /**
  * Returns the Hadoop command path.
  *
  * @return the Hadoop command path, or {@code null} if it is not found
  */
 public File getHadoopCommand() {
   if (explicitCommandPath != null) {
     return explicitCommandPath;
   }
   return ConfigurationProvider.findHadoopCommand(environmentVariables);
 }