private static void SetPrincipal(IGenFormIdentity identity) { _principal = new GenFormPrincipal(identity); Thread.CurrentPrincipal = _principal; }