public static String build(String... elements) {
		StringBuilder builder = new StringBuilder();
		for (int i = 0; i < elements.length; i++) {
			if (i == 0 && elements[i].charAt(0) != '/') {
				builder.append('/');
			}
			builder.append(elements[i]);
			if (i + 1 < elements.length) {
				builder.append('/');
			}
		}

		return builder.toString();
	}
Return a string with the provided path elements separated by a slash {@code /}.
The leading slash is created if required.

@param elements path elements

@return the full path
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/zookeeper/Paths.java