private static <T> String getXmlLine(String tag, Optional<T> value, String indent) {
        if (value.isPresent()) {
            return indent + "<" + tag + ">" + value.get() + "</" + tag + ">\n";
        }
        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