implemented methods "getForeignKeyFor" in DataMap. Refactor.