private List<ModuleMetadata.Id> getDeployedModules(String containerId) {
		List<ModuleMetadata.Id> ids = new ArrayList<ModuleMetadata.Id>();
		try {
			CuratorFramework client = zkConnection.getClient();
			if (client.checkExists().forPath(Paths.build(Paths.CONTAINERS, containerId)) != null) {
				List<String> qualifiedIds = client.getChildren().forPath(containerAllocationPath(containerId));
				for (String qualifiedId : qualifiedIds) {
					ids.add(new ModuleMetadata.Id(containerId, qualifiedId));
				}
			}
		}
		catch (Exception e) {
			ZooKeeperUtils.wrapAndThrowIgnoring(e, NoNodeException.class);
		}
		return ids;
	}
Get all the deployed modules by the given containerId.

@param containerId the containerId to filter
@return the list of moduleIds of the deployed modules.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/module/store/ZooKeeperModuleMetadataRepository.java