code: public static byte[] documentToBytes(Map<String, Object> doc) {
          return doc != null ? SerializationUtils.toByteArrayFst(doc) : ArrayUtils.EMPTY_BYTE_ARRAY;
      }
docs: Serialize "document" to byte array.
  
  @param doc
  @return
  @since 0.10.0