protected static function createRestClient($username, $password, $service)
    {
        $serviceClass = RestClient::ns()."\\{$service}";
        $client = new $serviceClass;

        $client->setUsername($username);
        $client->setPassword($password);

        return $client;
    }