int idx = uri.indexOf('?'); if (idx != -1) uri = uri.substring(0, idx);
    public String requestsContextID(WORequest aRequest){        String uri = aRequest.uri();        String eID = NSPathUtilities.lastPathComponent(uri);        NSArray eIDs = NSArray.componentsSeparatedByString(eID, ".");        String reqCID = "1";        if(eIDs.count() > 0) {            reqCID = (String)eIDs.objectAtIndex(0);        }        return reqCID;    }