anchor.diff:  %%-------------------------------------------------------------------
   %% @spec (Proplist) ->    ValidProplist
   %% @doc Validate the proplist to create a new bee record
  -%%      
  +%%
   %% @end
   %%-------------------------------------------------------------------
  -validate_bee(Bee) when is_record(Bee, bee) -> 
  +validate_bee(Bee) when is_record(Bee, bee) ->
     ValidatedBee = validate_bee(lists:reverse(record_info(fields, bee)), Bee),
     ValidatedBee;
   validate_bee(Else) -> Else.
   
   validate_bee([], Bee) ->  Bee;
   % Validate the id
  -validate_bee([id|Rest], #bee{id = undefined, app_name = AppName, host = Host, port = Port} = Bee) -> 
  +validate_bee([id|Rest],
  +             #bee{id = undefined, app_name = AppName,
  +                  host = Host, port = Port} = Bee) ->
     validate_bee(Rest, Bee#bee{id = {AppName, Host, Port}});
  -validate_bee([id|Rest], Bee) -> 
  +validate_bee([id|Rest], Bee) ->
     validate_bee(Rest, Bee);
  -% Validate the app_name
  -validate_bee([app_name|_Rest], #bee{app_name = undefined} = _Bee) -> {error, bee_not_associated_with_an_application};
  +%% Validate the app_name
  +validate_bee([app_name|_Rest], #bee{app_name = undefined} = _Bee) ->
  +  {error, bee_not_associated_with_an_application};
   validate_bee([app_name|Rest], Bee) -> validate_bee(Rest, Bee);
  -% Validate sticky-ness
  -validate_bee([sticky|Rest], #bee{sticky = false} = Bee) -> validate_bee(Rest, Bee);
  -validate_bee([sticky|Rest], #bee{sticky = true} = Bee) -> validate_bee(Rest, Bee);
  -validate_bee([sticky|_Rest], _Bee) -> {error, invalid_sticky_value};
  -% Validate the host
  -validate_bee([host|Rest], #bee{host = undefined} = Bee) -> validate_bee(Rest, Bee#bee{host = bh_host:myip()});
  -
  -% Validate others?
  +%% Validate sticky-ness
  +validate_bee([sticky|Rest], #bee{sticky = false} = Bee) ->
  +  validate_bee(Rest, Bee);
  +validate_bee([sticky|Rest], #bee{sticky = true} = Bee) ->
  +  validate_bee(Rest, Bee);
  +validate_bee([sticky|_Rest], _Bee) ->
  +  {error, invalid_sticky_value};
  +%% Validate the host
  +validate_bee([host|Rest], #bee{host = undefined} = Bee) ->
  +  validate_bee(Rest, Bee#bee{host = bh_host:myip()});
  +%% Validate others?
   validate_bee([_H|Rest], Bee) -> validate_bee(Rest, Bee).
  
positive.code:   [{Host, [B|Backends], Sum + 1} | Acc];
  find_all_grouped_by_host1(#bee{host=Host} = B, Acc) ->
    [{Host, [B], 1}|Acc].
    
  update([], _) -> ok;
  update(Bee, OtherBee) when is_record(Bee, bee) andalso is_record(OtherBee, bee) ->
    update(Bee, lists:flatten(to_proplist(OtherBee)));
  
negative.code: fbo([name|Rest], #bee_object{name = Name} = Bo, App, Bee) -> fbo(Rest, Bo, App, Bee#bee{app_name = Name});
  fbo([revision|Rest], #bee_object{revision = Rev} = Bo, App, Bee) -> fbo(Rest, Bo, App, Bee#bee{revision = Rev});
  fbo([bee_size|Rest], #bee_object{bee_size = V} = Bo, App, Bee) -> fbo(Rest, Bo, App, Bee#bee{bee_size = V});
  fbo([template|Rest], #bee_object{template = undefined} = Bo, #app{template = Type} = App, Bee) ->
    fbo(Rest, Bo, App, Bee#bee{template = Type});
  fbo([template|Rest], #bee_object{template = V} = Bo, App, Bee) -> fbo(Rest, Bo, App, Bee#bee{template = V});
  fbo([bee_file|Rest], #bee_object{bee_file = V} = Bo, App, Bee) -> fbo(Rest, Bo, App, Bee#bee{bee_file = V});
  