private List<Link> findLinksFromWithoutTransitions(Node n, boolean includeThoseLeadingToEnd) {
		List<Link> result = new ArrayList<>();
		for (Link link : links) {
			if (link.from.equals(n.id)) {
				if ((!link.hasTransitionSet()
						&& (includeThoseLeadingToEnd || !findNodeById(link.to).name.equals("END")))
						|| (link.hasTransitionSet() && link.getTransitionName().equals("'*'"))) {
					result.add(link);
				}
			}
		}
		return result;
	}
Walk a specified link to see if it ever hits the candidate node.

@param link points to the head of a chain of nodes
@param candidate the node possibly found on the chain of nodes
@return true if the candidate is found down the specified chain
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/job/dsl/Graph.java