Adding code to process XML input using XmlRootElement annotation on Object