docs: public static byte[] streamOut(Object object, boolean compressed) throws IOException {
          ByteArrayOutputStream bytes = new ByteArrayOutputStream();
  
          streamOut(bytes, object, compressed);
          bytes.flush();
          bytes.close();
          return bytes.toByteArray();
      }