code: public static Properties loadProperties(Class<?> clazz, String fileName) throws IOException {
          Properties properties = new Properties();
          try (InputStream is = clazz.getClassLoader().getResourceAsStream(fileName)) {
              properties.load(is);
          }
          return properties;
      }
docs: Load properties.
  
  @param clazz    the class from classpath where the properties are
  @param fileName properties file name
  @return properties
  @throws IOException for any error