Map<String, String> config = Maps.newHashMap();
if (links != null) {
for (Link link : links) {
ItemBase item = platformLayer.getItem(link.getTarget());
LinkTarget linkTarget = providers.toInterface(item, LinkTarget.class);
Map<String, String> linkTargetConfig = buildLinkTargetConfiguration(consumer, link.name, linkTarget);
config.putAll(linkTargetConfig);
}