private String getResourceLimitsXml(String indent, Optional<Double> diskLimit, Optional<Double> memoryLimit) {
        if (diskLimit.isPresent() || memoryLimit.isPresent()) {
            String xml = joinLines(indent + "<resource-limits>",
                    getXmlLine("disk", diskLimit, indent + "  "),
                    getXmlLine("memory", memoryLimit, indent + "  "),
                    indent + "</resource-limits>");
            return xml;
        }
        return "";
    }
Class for building a content cluster with indexed search (used for testing only).

@author geirst
config-model/src/test/java/com/yahoo/vespa/model/content/utils/ContentClusterBuilder.java