question: private Object fetchNewInstance ( ) { Object obj ; log . debug ( "getting new instance of " + classStr ) ; try { obj = runConstructor . newInstance ( ( Object [ ] ) null ) ; } catch ( InstantiationException e ) { logInvokeException ( "constructor" , e ) ; return null ; } catch ( IllegalAccessException e ) { logInvokeException ( "constructor" , e ) ; return null ; } catch ( InvocationTargetException e ) { logInvokeException ( "constructor" , e ) ; return null ; } if ( initMethod != null ) { log . debug ( "about to run init(ServletConfig) on " + classStr ) ; Object [ ] args = new Object [ 1 ] ; args [ 0 ] = runServletConfig ; try { initMethod . invoke ( obj , args ) ; } catch ( IllegalAccessException e ) { logInvokeException ( "init(ServletConfig)" , e ) ; return null ; } catch ( InvocationTargetException e ) { logInvokeException ( "init(ServletConfig)" , e ) ; return null ; } } if ( filterInitMethod != null ) { log . debug ( "about to run init(FilterConfig) on " + classStr ) ; Object [ ] args = new Object [ 1 ] ; args [ 0 ] = runServletConfig ; try { filterInitMethod . invoke ( obj , args ) ; } catch ( IllegalAccessException e ) { logInvokeException ( "init(FilterConfig)" , e ) ; return null ; } catch ( InvocationTargetException e ) { logInvokeException ( "init(FilterConfig)" , e ) ; return null ; } } return obj ; }
target:  Get a new instance of the classStr we want to run and init if required.