fixed getForeignKeyFor method in DataMap class