private function logIn()
    {
        $request  = xmlrpc_encode_request(
            "LogIn",
            array($this->username, $this->password, $this->lang, $this->userAgent)
        );
        $response = $this->generateResponse($request);
        if (($response && xmlrpc_is_fault($response))) {
            trigger_error("xmlrpc: $response[faultString] ($response[faultCode])");
        } else {
            if ($this->isWrongStatus($response)) {
                trigger_error('no login');
            } else {
                return $response['token'];
            }
        }

        return false;
    }