Fix call to serializeXml used for JBoss