protected Reference [] getParentsWithLocalForeignKey() {
if (parents == null) {
parents = new ArrayList<Reference>();
for (int i = 0; i < getForeignKeys().length; i++) {
ForeignKey foreignKey = getForeignKeys()[i];
// Reference reference = foreignKey.getFirstReference();
// //reverse reference view: reference comes from enrichment
// Reference ref = new ReferenceDDLUtils (new org.apache.ddlutils.model.Reference());
// ref.setForeignColumn(reference.getLocalColumn());
// ref.setForeignColumnName(reference.getLocalColumnName());
// ref.setForeignTable(reference.getLocalTable());
// ref.setForeignTableName(reference.getLocalTableName());
// ref.setLocalColumn(reference.getForeignColumn());
// ref.setLocalColumnName(reference.getForeignColumnName());
// ref.setLocalTable(reference.getForeignTable());
// ref.setLocalTableName(reference.getForeignTableName());
Reference ref = ReferenceDDLUtils.clone(foreignKey.getFirstReference());
// ref.setForeignColumn(reference.getForeignColumn());
// ref.setForeignColumnName(reference.getForeignColumnName());
// ref.setForeignTable(reference.getForeignTable());
// ref.setForeignTableName(reference.getForeignTableName());