code: public static PathFilter instantiatePathFilter(Properties props) {
  
      if (!props.containsKey(PATH_FILTER_KEY)) {
        return ACCEPT_ALL_PATH_FILTER;
      }
  
      try {
        Class<?> pathFilterClass = Class.forName(props.getProperty(PATH_FILTER_KEY));
        return (PathFilter) pathFilterClass.newInstance();
      } catch (ClassNotFoundException exception) {
        throw new RuntimeException(exception);
      } catch (InstantiationException exception) {
        throw new RuntimeException(exception);
      } catch (IllegalAccessException exception) {
        throw new RuntimeException(exception);
      }
    }
docs: Instantiate a {@link PathFilter} from the class name at key {@link #PATH_FILTER_KEY} in props passed. If key
  {@link #PATH_FILTER_KEY} is not set, a default {@link #ACCEPT_ALL_PATH_FILTER} is returned
  
  @param props that contain path filter classname at {@link #PATH_FILTER_KEY}
  @return a new instance of {@link PathFilter}. If not key is found, returns an {@link #ACCEPT_ALL_PATH_FILTER}