code: public static String serialize(Object obj) throws SerializationException {
  		try {
  			if (obj != null) {
  				return mapper.writeValueAsString(obj);
  			} else {
  				return null;
  			}
  		} catch (Exception e) {
  			logger.error("SerializationException {}", e.getMessage());
  			throw new SerializationException(e.getMessage());
  		}
  	}
docs: Serialize object to String
  
  @param obj
  @return
  @throws SerializationException