private void ThrowTypeNotRegisteredException(Type type, string message = null)
{
_currentTypeRequestPath = null;
// or _currentTypeRequestPath.PopType();
throw Log.ErrorAndCreateException(msg => new TypeNotRegisteredException(type, msg),
"The type '{0}' is not registered", type.GetSafeFullName(true));
}
#endregion