private IMessage SendMessage(IMessage message)
{
var envelope = Connector.CreateEnvelope(serverMetadata, message);
var response = Processor.ProcessMessage(envelope);
if (response == null)
throw new InvalidOperationException("The processor returned no response.");
if (response.Error != null)
throw new DeveelDbServerException(response.Error.ErrorMessage, response.Error.ErrorClass, response.Error.ErrorCode);
serverMetadata = response.Metadata;
return response.Message;
}