}
@Override
public Restlet createRoot() {
Permission canQuery = null;
Permission superuser = null;
Permission realmSuperuser = null;
try {
canQuery = db.getPermission(AuthDB.QUERY_PERMISSION);
if (canQuery==null) {
getContext().getLogger().severe("Cannot find query permission "+AuthDB.QUERY_PERMISSION);
return null;