docs: public static Properties getResourceAsProperties(ClassLoader loader, String resource) throws IOException {
          Properties props = new Properties();
          InputStream in = null;
          String propfile = resource;
          in = getResourceAsStream(loader, propfile);
          props.load(in);
          in.close();
          return props;
      }