docs: private static String convertViewActionApiResponse(Format format, String name, ApiResponse res) throws ApiException {
  		switch (format) {
  		case JSON:
  			return res.toJSON().toString();
  		case JSONP:
  			return getJsonpWrapper(res.toJSON().toString());
  		case XML:
  			return responseToXml(name, res);
  		case HTML:
  			return responseToHtml(res);
  		default:
  			// Should not happen, format validation should prevent this case...
  			logger.error("Unhandled format: " + format);
  			throw new ApiException(ApiException.Type.INTERNAL_ERROR);
  		}
  	}