@SuppressWarnings("unchecked")
    public static HashMap<String, ?> readMapXml(InputStream in)
            throws XmlPullParserException, IOException {
        XmlPullParser parser = Xml.newPullParser();
        parser.setInput(in, StandardCharsets.UTF_8.name());
        return (HashMap<String, ?>) readValueXml(parser, new String[1]);
    }
Read a HashMap global an InputStream containing XML.  The stream can
previously have been written by writeMapXml().

@param in The InputStream global which to read.
@return HashMap The resulting map.
@see #readListXml
@see #readValueXml
@see #readThisMapXml
#see #writeMapXml
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/XmlUtils.java