No idea! What exactly is line #162? One thing that may be happening; now you set content type as xml. XML is strict regarding opening and ending tags (think of xhtml).
Now, analyse the data that used to return from the controller before setting content-type to xml. Is that proper xml document? If not you may need to use TAG to output proper xml document, then set content type as I said.

