private List<Container> findAllContainersMatchingCriteria(Iterable<Container> containers, String criteria) {
		if (StringUtils.hasText(criteria)) {
			logger.debug("Matching containers for criteria '{}'", criteria);
		}

		List<Container> candidates = new ArrayList<Container>();

		for (Container container : containers) {
			logger.trace("Evaluating container {}", container);
			if (StringUtils.isEmpty(criteria) || isCandidate(container, criteria)) {
				logger.trace("\tAdded container {}", container);
				candidates.add(container);
			}
		}
		return candidates;
	}
Test all containers in the containerRepository against selection criteria

@param containers the containers of Iterator type to match against
@param criteria an optional SpEL expression evaluated against container attribute values

@return the list of containers matching the criteria
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/admin/deployment/ContainerMatcher.java