anchor.diff:  
   stop_child({{_, Id} = ChildId, _, _, _} = Child) ->
       ?xdcr_debug("Found matching child to stop: ~p", [Child]),
  -    supervisor:terminate_child(?MODULE, ChildId),
  +    ok = supervisor:terminate_child(?MODULE, ChildId),
       xdc_rep_utils:cleanup_replication_stats(Id),
       ok = supervisor:delete_child(?MODULE, ChildId).
   
  
positive.code:             },
      ?xdcr_info("start bucket replicator using spec: ~p.", [Spec]),
      xdc_rep_utils:init_replication_stats(Id),
      supervisor:start_child(?MODULE, Spec).
  
  -spec get_replications() -> [{Bucket :: binary(), Id :: binary(), pid()}].
  get_replications() ->
  
negative.code:             R = xdc_replication:update_replication(Pid, RepDoc),
              case R of
                  restart_needed ->
                      ok = supervisor:terminate_child(?MODULE, {Bucket, RepId}),
                      ok = supervisor:delete_child(?MODULE, {Bucket, RepId}),
                      start_replication(RepDoc);
                  ok ->
                      {ok, Pid}
  