code: public File getDirectory(String sPath) {
          File  directory = new File(sPath);
          if (!directory.isDirectory()) {
              URL resource = FilterFileManager.class.getClassLoader().getResource(sPath);
              try {
                  directory = new File(resource.toURI());
              } catch (Exception e) {
                  LOG.error("Error accessing directory in classloader. path=" + sPath, e);
              }
              if (!directory.isDirectory()) {
                  throw new RuntimeException(directory.getAbsolutePath() + " is not a valid directory");
              }
          }
          return directory;
      }
docs: Returns the directory File for a path. A Runtime Exception is thrown if the directory is in valid
  
  @param sPath
  @return a File representing the directory path