// Can limit rows returned with 0-based start index and size (number of
// records to return, -1 for all)
// default (0, -1) returns everything
// wc.query("start", "0");
// wc.query("size", "2");
PersonCollection collection = wc.get(PersonCollection.class);
// Can call wc.getResponse() to see response codes
List<Person> persons = collection.getList();
System.out.println("Size: " + persons.size());
for (Person person : persons) {
System.out.println("ID " + person.getId() + " : " + person.getName() + ", age : "
+ person.getAge());
}