public static Properties loadPropsFromResource(String resourceName) throws IOException {
    Properties props = new Properties();
    try (InputStream input = Thread.currentThread().getContextClassLoader().getResourceAsStream(resourceName)) {
      if (input == null) {
        throw new IllegalArgumentException("Could not find resource: " + resourceName);
      }
      props.load(input);
      return props;
    }
  }
Read a properties file from the given named resource
@param resourceName The name of the resource to read
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java