question: protected void configureReader ( XMLReader reader , DefaultHandler handler ) throws DocumentException { SAXHelper . setParserProperty ( reader , SAX_LEXICALHANDLER , handler ) ; SAXHelper . setParserProperty ( reader , SAX_LEXICAL_HANDLER , handler ) ; if ( includeInternalDTDDeclarations || includeExternalDTDDeclarations ) { SAXHelper . setParserProperty ( reader , SAX_DECL_HANDLER , handler ) ; } SAXHelper . setParserFeature ( reader , SAX_NAMESPACES , true ) ; SAXHelper . setParserFeature ( reader , SAX_NAMESPACE_PREFIXES , false ) ; SAXHelper . setParserFeature ( reader , SAX_STRING_INTERNING , isStringInternEnabled ( ) ) ; SAXHelper . setParserFeature ( reader , "http://xml.org/sax/features/use-locator2" , true ) ; try { reader . setFeature ( "http://xml.org/sax/features/validation" , isValidating ( ) ) ; if ( errorHandler != null ) { reader . setErrorHandler ( errorHandler ) ; } else { reader . setErrorHandler ( handler ) ; } } catch ( Exception e ) { if ( isValidating ( ) ) { throw new DocumentException ( "Validation not supported for" + " XMLReader: " + reader , e ) ; } } }
target:  Configures the XMLReader before use