protected void ThrowIfEtagDoesNotMatch(RavenConfig config, Guid originalEtag)
{
var currentEtag = (config.Id == null) ?
Guid.Empty :
this.RavenSession.Advanced.GetEtagFor(config).Value;
if (originalEtag != currentEtag)
{
throw new InvalidOperationException(
"The Raven config was modified by someone else or in a different browser window. " +
"Refresh the page to load the current version.");
}
}