Map<String, String> config = Maps.newHashMap();
if (context.links != null) {
NetworkPoint networkPoint = NetworkPoint.forTargetInContext();
InetAddressChooser inetAddressChooser = NearestAddressChooser.build(networkPoint);
SimpleLinkConsumer consumer = new SimpleLinkConsumer(consumerKey, inetAddressChooser);
config.putAll(consumeHelper.buildLinkTargetProperties(consumer, context.links.getLinks()));
}
return config;