Cleaning
Factored out getXmlRest from type class