code: public static Properties readPropertiesFromClassLoader(String resource) {
          Properties properties = new Properties();
          try {
              properties.load(FsCrawlerUtil.class.getClassLoader().getResourceAsStream(resource));
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
          return properties;
      }
docs: Read a property file from the class loader
  @param resource Resource name
  @return The properties loaded