public Map<String, Object> getDocuments(String jsonQuery, int limit, int skip) {
Map<String, Object> ret = new HashMap<String, Object>();
try {
DatabaseQuery<AdminServiceType> query = new AdminServiceQuery();
query.fromJson(jsonQuery);
ret.put("documents", getDocuments(connector.convert(query), limit, skip));
} catch (JsonException e) {
Map<String, String> error = new HashMap<String, String>();
error.put("Invalid query", jsonQuery);