public static XMLReader createXMLReader(String name) throws SAXException {
  final Logger logger=LoggerFactory.getLogger(XMLReader.class);
  XMLReader reader=null;
  try {
    reader=_createXMLReader(name);
  }
 catch (  ClassNotFoundException e) {
    logger.error("Class " + name + " not found");
    throw new SAXException(e);
  }
catch (  ClassCastException e) {
    logger.error(name + " is not a valid XMLReader.");
    throw new SAXException(e);
  }
catch (  Exception e) {
    logger.error("Could not create instance of " + name);
    throw new SAXException(e);
  }
  return reader;
}

public static XMLReader createXMLReader ( String name ) throws SAXException { final Logger logger = LoggerFactory . getLogger ( XMLReader . class ) ; XMLReader reader = null ; try { reader = _createXMLReader ( name ) ; } catch ( ClassNotFoundException e ) { logger . error ( "Class " + name + " not found" ) ; throw new SAXException ( e ) ; } catch ( ClassCastException e ) { logger . error ( name + " is not a valid XMLReader." ) ; throw new SAXException ( e ) ; } catch ( Exception e ) { logger . error ( "Could not create instance of " + name ) ; throw new SAXException ( e ) ; } return reader ; }
creates an org . xml . sax . xmlreader object using the supplied name .
