private List<Map<String, Object>> createLinksModel(Map<String, List<Link>> links) { List<Map<String, Object>> model = new ArrayList<>(); for (Entry<String, LinkDescriptor> entry : this.descriptorsByRel.entrySet()) { LinkDescriptor descriptor = entry.getValue(); if (!descriptor.isIgnored()) { if (descriptor.getDescription() == null) { descriptor = createDescriptor( getDescriptionFromLinkTitle(links, descriptor.getRel()), descriptor); } model.add(createModelForDescriptor(descriptor)); } } return model; }