code: public static byte[] serialize(final Serializable object) {
          val outBytes = new ByteArrayOutputStream();
          serialize(object, outBytes);
          return outBytes.toByteArray();
      }
docs: Serialize an object.
  
  @param object The object to be serialized
  @return the +byte[]+ containing the object
  @since 5.0.0