[issue] XmlMapLoader: Move duplicate code to helper class.