if (fkName == null)
if (fkName.equals(getFKName(sourceTable, curFk)))
    private void updateFKColumns(DynaBean referencingBean, DynaBean referencedBean, String fkName)    {        Table      sourceTable = ((SqlDynaClass)referencingBean.getDynaClass()).getTable();        Table      targetTable = ((SqlDynaClass)referencedBean.getDynaClass()).getTable();        ForeignKey fk          = null;        for (Iterator it = sourceTable.getForeignKeys().iterator(); it.hasNext();)        {            ForeignKey curFk = (ForeignKey)it.next();            if (curFk.getForeignTable().equalsIgnoreCase(targetTable.getName()))            {                if (fkName == null)                {                    if (curFk.getName() == null)                    {                        fk = curFk;                        break;                    }                }                else                {                    if (fkName.equals(curFk.getName()))                    {                        fk = curFk;                        break;                    }                }            }        }        if (fk != null)        {            for (Iterator it = fk.getReferences().iterator(); it.hasNext();)            {                Reference curRef       = (Reference)it.next();                Column    sourceColumn = sourceTable.findColumn(curRef.getLocal());                Column    targetColumn = targetTable.findColumn(curRef.getForeign());                referencingBean.set(sourceColumn.getName(), referencedBean.get(targetColumn.getName()));            }        }    }