Remove unnecessary imports in xml writer