private void InitializeContext(ContextBase context)
 {
     context.Observer = ObserverTrace.Instance(traceName);
     context.RegisterEndHandler(new EventHandler <EventArgs>(End));
     context.EnterInitialState();
 }