anchor.diff:  
   %%%=============================================================================
   %%% @doc
  -%%% @copyright 2014, 2015 Klarna AB
  +%%% @copyright 2014-2016 Klarna AB
   %%% @end
   %%%=============================================================================
   
  
positive.code: %%%
  %%%   Copyright (c) 2014, 2015, Klarna AB
  %%%
  %%%   Licensed under the Apache License, Version 2.0 (the "License");
  %%%   you may not use this file except in compliance with the License.
  
negative.code:         false ->
            {error, {unknown_partition, Topic, Partition}};
          #partition_metadata{leader_id = LeaderId} ->
            Leader = lists:keyfind(LeaderId, #broker_metadata.node_id, Brokers),
            LeaderPartitions =
              [{T, P} || #topic_metadata{name = T, partitions = Ps} <- Topics,
                         #partition_metadata{leader_id = Lid, id = P} <- Ps,
                         Lid =:= LeaderId],
            {ok, Leader, LeaderPartitions}
        end
    end.
  
  