code: public static byte[] objectToBlob(Object o) {
          try {
              return SerializerContext.getInstance().serialize(o);
          } catch (SerializerException e) {
              throw new RuntimeException(e);
          }
      }
docs: java Object to bytes
  
  @param o o
  @return byte[]