private int endPos(Iterable<Token> many) {
		int result = -1;
		for (Token t : many) {
			result = t.endpos;
		}
		Assert.isTrue(result != -1, "list of tokens must not be empty");
		return result;
	}
Return the endPos of the end token in the list (must be non empty).
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/dsl/StreamConfigParser.java