@Override
          public void write(JsonWriter out, Class value) throws IOException {
            if (value == null) {
              out.nullValue();
            } else {
              out.value(value.getName());
            }
          }
Helper method to serialize Java objects as json strings
@param name name of object used for logging
@param object object to be serialized
@return Json representation of the object
samza-api/src/main/java/org/apache/samza/table/utils/SerdeUtils.java