private List<TargetDB> buildTargetDbList(Map<String, Set<String>> topology) {
List<TargetDB> targetDbList = new ArrayList<TargetDB>(topology.size());
for (Map.Entry<String, Set<String>> e : topology.entrySet()) {
TargetDB db = new TargetDB();
Map<String, Field> tableNames = new HashMap<String, Field>(e.getValue().size());
for (String tbName : e.getValue()) {
tableNames.put(tbName, null);
}
db.setDbIndex(e.getKey());
db.setTableNames(tableNames);
targetDbList.add(db);
}
return targetDbList;
}