private List<TableRow> getRuntimeModulesForStream(String streamName) {
		CommandResult cmdResult = executeCommand("runtime modules");
		Table table = (Table) cmdResult.getResult();
		List<TableRow> modules = new ArrayList<TableRow>();
		for (TableRow row : table.getRows()) {
			if (row.getValue(1).contains(streamName)) {
				modules.add(row);
			}
		}
		return modules;
	}
Return a list of runtime modules for the stream name.

@param streamName name of stream for which to obtain runtime modules
@return list of table rows containing runtime module information
        for the requested stream
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractRuntimeCommandsTests.java