private IMessageEnvelope ProcessBegin(IDictionary <string, object> metadata)
{
try {
connector.AssertNotDisposed();
connector.AssertAuthenticated();
var id = connector.BeginTransaction();
return(connector.CreateEnvelope(metadata, new BeginResponse(id)));
} catch (Exception ex) {
// TODO: Log the error ...
return(CreateErrorResponse(metadata, ex));
}
}