}
@SuppressWarnings("unchecked")
protected PagedListInfo getPagedDocuments(String path, Map response)
throws EchoNestException {
MQuery mq = new MQuery(response);
Integer start = mq.getInteger("start", 0);
Integer total = mq.getInteger("total");
if (total == null) {
throw new EchoNestException(
EchoNestException.CLIENT_SERVER_INCONSISTENCY,
"Missing total in doc return");
}
List list = (List) mq.getObject(path);
return new PagedListInfo(start, total, list);
}