Use IValueResolver to resolve foreign entities.