Near-infrared and optical spectroscopy of FSC 10214+4724