private static IUser GetCurrentUser()
{
// getting the current user when not logged in might throw an exception and cause a loop calling LogManager..
return AuthorizationManager.IsLoggedOn ? AuthorizationManager.CurrentUser : null;
}