code: final JSONObject marshallForSending() throws JSONException {
  		JSONObject result;
  		String container = getJsonContainer();
  		if (container != null) {
  			result = new JSONObject();
  			result.put(container, jsonObject);
  		} else {
  			result = jsonObject;
  		}
  
  		if (isAuthenticated()) {
  			result.put("token", getConversationToken());
  		}
  
  		if (hasSessionId()) {
  			result.put("session_id", getSessionId());
  		}
  
  		return result;
  	}
docs: endregion