@Override protected Map<String, Object> createModel(Operation operation) { OperationResponse response = operation.getResponse(); Map<String, List<Link>> links; try { links = this.linkExtractor.extractLinks(response); validate(links); } catch (IOException ex) { throw new ModelCreationException(ex); } Map<String, Object> model = new HashMap<>(); model.put("links", createLinksModel(links)); return model; }