code: public static void configurationDirectoryExists(final String string, final String message)
          throws ConfigurationException {
          if (string == null || string.length() == 0 || new File(string).isDirectory() == false) {
              throw new ConfigurationException(message);
          }
      }
docs: Checks that string is not null and not empty and it represents a path to a valid directory
  
  @param string
  The path to check
  @param message
  The exception message
  
  @throws ConfigurationException
  Thrown if string is empty, null or it does not represent a path the a valid directory