@Override
    public int service(VectorMap parameters, StringBuffer response, DBAccess dbAccess) {
        int respCode;
        VectorMap queryParam;
        StringBuffer respBody;

        respBody = new StringBuffer();
        queryParam = parameters;

        if (!ClientCredentialsChecker.check(dbAccess, queryParam)) {
            return PSReqWorker.REQUEST_ERR;  //no point in proceeding
        }

        int clntIdx = queryParam.qpIndexOfKeyNoCase("clnt");
        String clientName = (String) queryParam.getVal(clntIdx);
        clientName = clientName.substring(0, clientName.indexOf('|'));
        queryParam.updateVal(clientName, clntIdx);

        //commands of ADMIN_MODE here!
        //find 'com' query param (case independent)
        int comIdx = parameters.qpIndexOfKeyNoCase("com");
        //if 'com' param not present, request is invalid
        if (comIdx == -1) {
            respCode = PSReqWorker.REQUEST_ERR;
            WebServer.win.log.error("-Request command does not exist");
            return respCode;  //no point in proceeding
        }

        //recognize command encoded in request
        String com = (String) queryParam.getVal(comIdx);
        if (com.equalsIgnoreCase("loadftr")) {//create user communities
            respCode = loadFeatures(queryParam, respBody, dbAccess);
        } else if (com.equalsIgnoreCase("loadusr")) {//create user communities
            respCode = loadUsers(queryParam, respBody, dbAccess);
        } else if (com.equalsIgnoreCase("loadlog")) {//create user communities
            respCode = loadLog(queryParam, respBody, dbAccess);
        } else if (com.equalsIgnoreCase("loadftrgrp")) {//create user communities
            respCode = loadFeatureGroup(queryParam, respBody, dbAccess);
        } else if (com.equalsIgnoreCase("loadcommu")) {//create user communities
            //respCode = loadCommunity(queryParam, respBody, dbAccess);
            respCode = 0;
        } else if (com.equalsIgnoreCase("loadftrgrph")) {//create user communities
            //respCode = loadFeatureGraph(queryParam, respBody, dbAccess);
            respCode = 0;
        } else {
            respCode = PSReqWorker.REQUEST_ERR;
            WebServer.win.log.error("-Request command not recognized");
        }

        response.append(respBody.toString());
        return respCode;
    }