code: @Override
      public byte[] serialize(String topic, Serializable data) {
          try {
              if (data == null)
                  return null;
              else{     
              	String toString = isSimpleDataType(data) ? data.toString() : JsonUtils.toJson(data);
              	return  toString.getBytes(StandardCharsets.UTF_8.name());
              }
          } catch (UnsupportedEncodingException e) {
              throw new SerializationException("Error when serializing string to byte[] due to unsupported encoding UTF-8");
          }
      
      }
docs: serialize
  
  @param topic topic associated with data
  @param data  typed data
  @return serialized bytes