Implements sandbox.Sandbox.which()