docs: public static ByteArrayInputStream toStream(ByteBuffer byteBuffer) {
          if (byteBuffer == null) {
              return new ByteArrayInputStream(new byte[0]);
          }
          return new ByteArrayInputStream(copyBytesFrom(byteBuffer));
      }