private void resetInternal() throws SAXNotSupportedException, SAXNotRecognizedException { try { reader = new Driver(); for (Map.Entry<String,Boolean> entry : initialFeatures.entrySet()) { reader.setFeature(entry.getKey(), entry.getValue()); } } catch (XmlPullParserException e) { throw new SAXNotRecognizedException(e.toString()); } }