class StringListStreamConverter implements InputStreamConverter<List<String>> {

  @Override
  public List<String> readStream(InputStream inputStream) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
    List<String> stringList = reader.lines().collect(Collectors.toList());
    reader.close();
    return stringList;
  }

}