added getEncounter method