/** Attaches the reader to the catalog. */
  private void attachReaderToCatalog(Catalog catalog) {

    SAXParserFactory spf = new SAXParserFactoryImpl();
    spf.setNamespaceAware(true);
    spf.setValidating(false);

    SAXCatalogReader saxReader = new SAXCatalogReader(spf);
    saxReader.setCatalogParser(
        OASISXMLCatalogReader.namespaceName,
        "catalog",
        "com.sun.org.apache.xml.internal.resolver.readers.OASISXMLCatalogReader");
    catalog.addReader("application/xml", saxReader);
  }
 /*     */ public void setupReaders() /*     */ {
   /*  90 */ SAXParserFactory spf =
       this.catalogManager.useServicesMechanism()
           ? SAXParserFactory.newInstance()
           : new SAXParserFactoryImpl();
   /*     */
   /*  92 */ spf.setNamespaceAware(true);
   /*  93 */ spf.setValidating(false);
   /*     */
   /*  95 */ SAXCatalogReader saxReader = new SAXCatalogReader(spf);
   /*     */
   /*  97 */ saxReader.setCatalogParser(
       null, "XMLCatalog", "com.sun.org.apache.xml.internal.resolver.readers.XCatalogReader");
   /*     */
   /* 100 */ saxReader.setCatalogParser(
       "urn:oasis:names:tc:entity:xmlns:xml:catalog",
       "catalog",
       "com.sun.org.apache.xml.internal.resolver.readers.ExtendedXMLCatalogReader");
   /*     */
   /* 104 */ addReader("application/xml", saxReader);
   /*     */
   /* 106 */ TR9401CatalogReader textReader = new TR9401CatalogReader();
   /* 107 */ addReader("text/plain", textReader);
   /*     */ }