}
JsonRpcControlEvent[] controlEvents = new JsonRpcControlEvent[10];
for (int i = 0; i < 10; i++) {
controlEvents[i] = new JsonRpcControlEvent("MyType" + i,
new JsonRpcReason(34, "MyMessage" + i));
}
resSent = JsonRpcResponse.newPollResponse(contentEvents, controlEvents,
9);
json = GsonUtils.getGson().toJson(resSent);