public bool Authenticate()
{
var response = SendMessage(new AuthenticateRequest(Settings.Schema, Settings.UserName, Settings.Password))
as AuthenticateResponse;
if (response == null)
throw new InvalidOperationException("No response from the server");
return response.Authenticated;
}