identity.setIdentityColumn(reference.getForeign(), bean.get(reference.getLocal()));
if (value == null) { return null; } identity.setIdentityColumn(reference.getForeign(), value);
    private Identity buildIdentityFromFK(ForeignKey fk, DynaBean bean)    {        Identity identity = new Identity(fk.getForeignTable(), fk.getName());        for (Iterator refIt = fk.getReferences().iterator(); refIt.hasNext();)        {            Reference reference = (Reference)refIt.next();            identity.setIdentityColumn(reference.getForeign(), bean.get(reference.getLocal()));        }        return identity;    }