docs: public static void consumeInputStream(InputStream inputStream,
              String charsetName, Consumer<String> consumer) {
          try (BufferedReader br = new BufferedReader(
                  new InputStreamReader(inputStream, charsetName))) {
              for (String line = br.readLine(); line != null;
                      line = br.readLine())
                  consumer.accept(line);
          } catch (IOException e) {
              JMExceptionManager.handleExceptionAndThrowRuntimeEx(log, e,
                      "consumeInputStream", inputStream, charsetName, consumer);
          }
      }