private String createVespaServices(String pre, List<String> sdNames, String post, String mode) {
        StringBuilder retval = new StringBuilder();
        retval.append(pre);


        for (String sdName : sdNames) {
            retval.append("<document type='" + sdName + "' " + "mode='" + mode + "'/>");
        }

        retval.append(post);
        return retval.toString();
    }
Test for using the content model to create indexed search clusters.
config-model/src/test/java/com/yahoo/vespa/model/content/IndexedTest.java