private static int findPosition(List<String> list, String text) {
		for (int i = 0; i < list.size(); i += 1) {
			if (list.get(i).indexOf(text) != -1) {
				return i;
			}
		}
		return -1;
	}
Custom application master handling XD containers grouping setting
for launch commands.

@author Janne Valkealahti
spring-xd-yarn/spring-xd-yarn-appmaster/src/main/java/org/springframework/xd/yarn/XdAppmaster.java