public void togglePolicyEnabled(Policy policy) {
   LivePolicy livePolicy = livePolicies.get(policy.getID());
   if (policy.isEnabled()) {
     livePolicy.activate();
   } else {
     livePolicy.deactivate();
   }
 }
 public void deletePolicy(Policy policy) {
   LivePolicy livePolicy = livePolicies.get(policy.getID());
   livePolicy.deactivate();
   livePolicies.remove(policy.getID());
   policies.remove(policy);
 }
  public void add(Policy p) {
    LivePolicy livePolicy = new LivePolicy(p);

    livePolicies.put(p.getID(), livePolicy);
    policies.add(p);
  }