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 .