String selected) {
StringBuilder buf = new StringBuilder();
// TODO: With the extraction of getDocbases, we could dispense
// with the multiple docbase feature of MockDmDocbaseMap.
try {
IDocbaseMap docbaseMap = new MockDmDocbaseMap(count);
List<String> docbases = new ArrayList<String>();
for (int i = 0; i < docbaseMap.getDocbaseCount(); i++) {
docbases.add(docbaseMap.getDocbaseName(i));
}
FormSnippet snippet = new FormSnippet(resources, docbases, true);
snippet.appendDropDownListAttribute(buf, value);
} catch (RepositoryException e) {