private static Slime toSlime(URI parentUrl, List<String> subResources) {
        var slime = new Slime();
        var resourceArray = slime.setObject().setArray("resources");
        for (var subResource : subResources) {
            var resourceEntry = resourceArray.addObject();
            resourceEntry.setString("url", new UriBuilder(parentUrl).append(subResource)
                                                             .withTrailingSlash()
                                                             .toString());
        }
        return slime;
    }
Returns a response containing an array of links to sub-resources

@author bratseth
container-core/src/main/java/com/yahoo/restapi/ResourceResponse.java