class BehaviorManager {

   public boolean removeBehavior(String id, SubsystemContext<CareSubsystemModel> context) {
      CareBehaviorTypeWrapper behavior = getBehaviorFromContext(id, context);
      BehaviorMonitor.removeBehavior(id, context);
      context.setVariable(BehaviorMonitor.BEHAVIOR_KEY.create(id), null);
      BehaviorMonitor.clearBehaviorTimeouts(id, context);
      BehaviorUtil.removeStringFromSet(id, CareSubsystemCapability.ATTR_BEHAVIORS, context.model());
      BehaviorUtil.removeStringFromSet(id, CareSubsystemCapability.ATTR_ACTIVEBEHAVIORS, context.model());
      broadcastBehaviorEvent(behavior, context, CareSubsystemCapability.BehaviorActionEvent.BEHAVIORACTION_DELETED);
      return true;
   }

   public  BehaviorManager();

}