Implemented saveMap() in XML