}
protected Restlet createQueriesRouter(Context c) {
Router router = new Router(c);
router.setDefaultMatchingMode(Template.MODE_STARTS_WITH);
router.attach("/{" + QUERY_ID_PARAM + "}", new PreparedQueryResolver(c, new QueryTypeRouter(c,
PreparedQueryResource.class)));
router.attach("", new QueryParser(c, QueryListResource.class));
return router;
}