public void table(FlowContext flowContext) throws TuboException {
//
// get item
RestletItem item = (RestletItem)flowContext.getItem();
//
// get Variant
Variant variant = (Variant) item.getRestletVariant();
JSONObject json = new JSONObject();
try {
json.put("requestId", "0");
json.put("status", "ok");
json.put("signature", "6173382439516707022");
json.put(JSON_NAME_TABLE, this.createTable());
} catch (JSONException e) {
//throw new ResourceException(Status.SERVER_ERROR_INTERNAL);
}
JsonRepresentation jr = new JsonRepresentation(json);
jr.setCharacterSet(CharacterSet.UTF_8);
//
// store result
item.getProperties().put(RestletConsumer.RESTLET_RESOURCE_OUT_REPRESENTATION,jr);
}