anchor.diff:      catch
           _:Reason0 ->
               self() ! {port_comm_error, Reason0}
  -
       end,
   
       CT = erlang:system_time(milli_seconds),
  
positive.code: 
  %%--------------------------------------------------------------------
  %% @doc
  %% Entry point for Erlang Port (couchbase-sync-gateway) loop spawned with proc_lib.
  %% Spawned couchbase-sync-gateway connects to given couchbase node and gives CouchDB-like
  %% endpoint on localhost : ?GATEWAY_BASE_PORT + N .
  
negative.code:     {Props} = to_json_term(Value),
      Doc = {[{<<"_rev">>, Rev}, {<<"_id">>, to_driver_key(Bucket, Key)} | Props]},
      case db_run(couchbeam, save_doc, [Doc], 3) of
          {ok, {_}} ->
              {ok, Key};
          {error, conflict} ->
  