List<ModuleDefinition> dbTypes = new ArrayList<ModuleDefinition>();
Iterator<ModuleDefinition> allDbTypes = getModulesForType(ContentDatabaseModuleType.class).values().iterator();
while (allDbTypes.hasNext()) {
ModuleDefinition moduleDefinition = (ModuleDefinition) allDbTypes.next();
DatabaseProperties props = (DatabaseProperties) moduleDefinition.getProperties();
Iterator<ServerDatabaseRetriever> retrievers = props.getServerDatabaseRetrievers().iterator();
while (retrievers.hasNext()) {
ServerDatabaseRetriever serverDatabaseRetriever = (ServerDatabaseRetriever) retrievers.next();
if (server.getClass().isAssignableFrom(serverDatabaseRetriever.getDatabaseServerType())) {
dbTypes.add(moduleDefinition);
break;