while (servers.hasNext()) {
WGDatabaseServer server = servers.next();
Iterator<ModuleDefinition> csTypes = server.getContentStoreTypes().iterator();
if (csTypes.hasNext()) {
DatabaseServerInfo info = new DatabaseServerInfo();
info.setUid(server.getUid());
info.setTitle(server.getTitle(Locale.ENGLISH));
infos.add(info);
while (csTypes.hasNext()) {
ModuleDefinition csType = csTypes.next();
if (server.isDatabaseTypeCreatable((Class<? extends WGDatabaseCore>)csType.getImplementationClass())) {
info.getCreateableContentStoreImplemenations().add(csType.getImplementationClass().getName());
}
}
}
}
}