class UriBuilder {

    public static String concatUriSegments(String... segments) {
        StringBuilder uri = new StringBuilder();
        for (int i = 0; i < segments.length; i++) {
            if (i == 0) {
                uri.append(segments[0]);
            } else {
                uri.append("/").append(segments[i]);
            }
        }
        return cleanUri(uri.toString());
    }

    private  UriBuilder();

}