* @return true if all foreign keys are resolved or if there was no foreign key, false otherwise.
*/
private static boolean checkIfForeignKeysAreResolved(SqlDescription desc, Set setOfProcessedTables, Map allTables) throws Exception {
SqlColumn[] cols = desc.getColumns();
for (int i=0; i < cols.length; i++) {
SqlColumn col = cols[i];
if (col.isFk()) {
String fkTable = col.getFkTable();
if (fkTable == null)
throw new Exception("The column '" + cols[i].getTable() + "' has a column '" + cols[i].getColName() + "' which is a foreign key but no associated table name was found");
if (!setOfProcessedTables.contains(fkTable)) {
if (!allTables.containsKey(fkTable))
log.warning("The column '" + cols[i].getTable() + "' has a column '" + cols[i].getColName() + "' which is a foreign key. It is associated with a table which is not replicated (remember to make sure that this table is available on the destination also.");