code: @Override
    public Properties getProperties(InputStream inputStream) {
      Properties properties = new Properties();
  
      try {
        properties.load(inputStream);
      } catch (IOException | IllegalArgumentException e) {
        throw new IllegalStateException("Unable to load properties from provided stream", e);
      }
  
      return properties;
    }
docs: Get {@link Properties} for a given {@code inputStream} treating it as a properties file.
  
  @param inputStream input stream representing properties file
  @return properties representing values from {@code inputStream}
  @throws IllegalStateException when unable to read properties