static PrevalenceEngine GetCurrent(string methodName)
{
PrevalenceEngine current = PrevalenceEngine.Current;
if (null == current)
{
throw new InvalidOperationException(string.Format("{0} can only be called during the execution of a command or query!"));
}
return current;
}
}