Makes ResultHandler more generic