private ReductionKeyEdgeResponseDTO transform(ReductionKeyEdge edge) { final ReductionKeyEdgeResponseDTO response = new ReductionKeyEdgeResponseDTO(); response.setId(edge.getId()); response.setOperationalStatus(edge.getOperationalStatus()); response.setReductionKey(edge.getReductionKey()); response.setLocation(ResourceLocationFactory.createBusinessServiceEdgeLocation(edge.getSource().getId(), edge.getId())); response.setReductionKeys(edge.getReductionKeys()); response.setMapFunction(transform(edge.getMapFunction())); response.setWeight(edge.getWeight()); response.setFriendlyName(edge.getFriendlyName()); return response; }