}
public static ServerDatabaseRetriever fetchServerDatabaseRetriever(ModuleDefinition dbModuleDef, Class serverClass) throws ModuleDependencyException {
// Find the database retriever for this server
DatabaseProperties props = (DatabaseProperties) dbModuleDef.getProperties();
Iterator<ServerDatabaseRetriever> retrievers = props.getServerDatabaseRetrievers().iterator();
ServerDatabaseRetriever retriever = null;
while (retrievers.hasNext()) {
ServerDatabaseRetriever serverDatabaseRetriever = (ServerDatabaseRetriever) retrievers.next();
if (serverDatabaseRetriever.getDatabaseServerType().isAssignableFrom(serverClass)) {
retriever = serverDatabaseRetriever;