public SmartResponder(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
    {
        serviceRequest = httpservletrequest;
        serviceResponse = httpservletresponse;
        userRequest = httpservletrequest.getParameter("text");
        userid = httpservletrequest.getParameter("userid");
        botid = httpservletrequest.getParameter("botid");
        if(userRequest == null)
            userRequest = CONNECT;
        else
        if(userRequest.equals(""))
            userRequest = INACTIVITY;
        else
            try
            {
                userRequest = new String(userRequest.getBytes("8859_1"), "utf-8");
            }
            catch(UnsupportedEncodingException unsupportedencodingexception)
            {
                throw new DeveloperError("Encodings are not properly supported!");
            }
        if(userid == null)
            userid = httpservletrequest.getRemoteHost();
        if(botid == null)
            botid = Bots.getFirstBot().getID();
        templateName = httpservletrequest.getParameter("template");
        if(templateName == null)
            templateName = "";
    }