code: private static StringEntity toStringEntity(Object object) {
  		StringEntity input = null;
  		try {
  			String json = FbBotMillJsonUtils.toJson(object);
  			input = new StringEntity(json, "UTF-8");
  			input.setContentType("application/json");
  			logger.debug("Request: {}", inputStreamToString(input.getContent()));
  		} catch (Exception e) {
  			logger.error("Error during JSON message creation: ", e);
  		}
  		return input;
  	}
docs: Utility method that converts an object to its StringEntity
  representation.
  
  @param object
  the object to convert to a StringEntity.
  @return a {@link StringEntity} object containing the object JSON.