Spectroscopic evidence that the extreme properties of IRAS F10214+4724 are due to gravitational lensing