public IBWControlContext RegisterBWControllable(IBWControllable bc)
 {
     lock (_contextMap.SyncRoot)
     {
         if (!_contextMap.Contains(bc))
         {
             DummyBWContext context = new DummyBWContext(bc);
             _contextMap.Add(bc, context);
         }
         return(_contextMap[bc] as IBWControlContext);
     }
 }
 public IBWControlContext RegisterBWControllable(IBWControllable bc)
 {
     lock (_contextMap.SyncRoot)
     {
         if (!_contextMap.Contains(bc))
         {
             DummyBWContext context = new DummyBWContext(bc);
             _contextMap.Add(bc, context);
         }
         return _contextMap[bc] as IBWControlContext;
     }
 }