src/main/java/org/jboss/util/xml/catalog/Catalog.java
protected Catalog newCatalog() {
    String catalogClass = this.getClass().getName();

    try {
      Catalog c = (Catalog) (Class.forName(catalogClass).newInstance());
      c.setCatalogManager(catalogManager);
      copyReaders(c);
      return c;
    } catch (ClassNotFoundException cnfe) {
      catalogManager.debug.message(1, "Class Not Found Exception: " + catalogClass);
    } catch (IllegalAccessException iae) {
      catalogManager.debug.message(1, "Illegal Access Exception: " + catalogClass);
    } catch (InstantiationException ie) {
      catalogManager.debug.message(1, "Instantiation Exception: " + catalogClass);
    } catch (ClassCastException cce) {
      catalogManager.debug.message(1, "Class Cast Exception: " + catalogClass);
    } catch (Exception e) {
      catalogManager.debug.message(1, "Other Exception: " + catalogClass);
    }

    Catalog c = new Catalog();
    c.setCatalogManager(catalogManager);
    copyReaders(c);
    return c;
  }
protected Catalog newCatalog() {
    String catalogClass = this.getClass().getName();

    try {
      Catalog c = (Catalog) (Class.forName(catalogClass).newInstance());
      c.setCatalogManager(catalogManager);
      copyReaders(c);
      return c;
    } catch (ClassNotFoundException cnfe) {
      catalogManager.debug.message(1, "Class Not Found Exception: " + catalogClass);
    } catch (IllegalAccessException iae) {
      catalogManager.debug.message(1, "Illegal Access Exception: " + catalogClass);
    } catch (InstantiationException ie) {
      catalogManager.debug.message(1, "Instantiation Exception: " + catalogClass);
    } catch (ClassCastException cce) {
      catalogManager.debug.message(1, "Class Cast Exception: " + catalogClass);
    } catch (Exception e) {
      catalogManager.debug.message(1, "Other Exception: " + catalogClass);
    }

    Catalog c = new Catalog();
    c.setCatalogManager(catalogManager);
    copyReaders(c);
    return c;
  }
protected Catalog newCatalog ( ) { String catalogClass = this . getClass ( ) . getName ( ) ; try { Catalog c = ( Catalog ) ( Class . forName ( catalogClass ) . newInstance ( ) ) ; c . setCatalogManager ( catalogManager ) ; copyReaders ( c ) ; return c ; } catch ( ClassNotFoundException cnfe ) { catalogManager . debug . message ( 1 , "Class Not Found Exception: " + catalogClass ) ; } catch ( IllegalAccessException iae ) { catalogManager . debug . message ( 1 , "Illegal Access Exception: " + catalogClass ) ; } catch ( InstantiationException ie ) { catalogManager . debug . message ( 1 , "Instantiation Exception: " + catalogClass ) ; } catch ( ClassCastException cce ) { catalogManager . debug . message ( 1 , "Class Cast Exception: " + catalogClass ) ; } catch ( Exception e ) { catalogManager . debug . message ( 1 , "Other Exception: " + catalogClass ) ; } Catalog c = new Catalog ( ) ; c . setCatalogManager ( catalogManager ) ; copyReaders ( c ) ; return c ; }
Create a new Catalog object.

<p>This method constructs a new instance of the running Catalog
class (which might be a subtype of org.apache.xml.resolver.Catalog).
All new catalogs are managed by the same CatalogManager.
</p>

<p>N.B. All Catalog subtypes should call newCatalog() to construct
a new Catalog. Do not simply use "new Subclass()" since that will
confuse future subclasses.</p>

@return the catalog
Create a new Catalog object .