public static AwsPath of(String... elements) {
        if (elements != null && elements.length > 0 && elements[0] != null && ! elements[0].isEmpty()) {
            return new AwsPath(
                    Stream.of(elements)
                            .map(String::toLowerCase)
                            // TODO: consider using '.' as delimiter, to prevent deep paths
                            .collect(joining("/", "/", "/")));

        }
        return new AwsPath("/");
    }
Creates a new path from the given elements, adding the leading and trailing slashes
jdisc-cloud-aws/src/main/java/ai/vespa/secret/aws/AwsPath.java