Reintroduced GetDetector for backward compatibility.