//通过JRestClient直接访问rest资源
JRestClient client = new JRestClient();
ModelMap<String, Object> urlParam = new ModelMap<String, Object>();
urlParam.put("pageIndex", "1");
urlParam.put("pageSize", "5");
Object result = client.callRemote("http://localhost/full/resource/contacts",
"get", urlParam);
Page<Contact> page = (Page<Contact>) result;
List<Contact> contacts = page.getResult();
for (Contact ct : contacts)