public static void ensurePath(CuratorFramework client, String path) {
		EnsurePath ensurePath = ensurePaths.get(path);
		if (ensurePath == null) {
			ensurePaths.putIfAbsent(path, client.newNamespaceAwareEnsurePath(path));
			ensurePath = ensurePaths.get(path);
		}
		try {
			ensurePath.ensure(client.getZookeeperClient());
		}
		catch (Exception e) {
			throw ZooKeeperUtils.wrapThrowable(e);
		}
	}
Ensure the existence of the given path.

@param client curator client
@param path path to create, if needed
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/zookeeper/Paths.java