this.directory = directory;
this.foreignAgencies = foreignAgencies;
}
private PollingSpyHandler spyFor(Feature feature) {
ObservationAgency latestAgency = foreignAgencies.agencyFor(feature.type());
ObservationAgency currentAgency = agencies.get(feature.type());
if (currentAgency != latestAgency) {
agencies.put(feature.type(), latestAgency);
handlers.invalidate(feature);
}