refactor CollectDataForXmlReport method