public Object getInstanceOf ( String key ) { try { ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; return Class . forName ( ( String ) classesMap . get ( key ) , true , loader ) . newInstance ( ) ; } catch ( IllegalAccessException e ) { logger . logp ( Level . SEVERE , "JspClassFactory" , "getInstanceOf" , "jsp.error.function.classnotfound" , ( String ) classesMap . get ( key ) ) ; } catch ( InstantiationException e ) { logger . logp ( Level . SEVERE , "JspClassFactory" , "getInstanceOf" , "jsp.error.function.classnotfound" , ( String ) classesMap . get ( key ) ) ; } catch ( ClassNotFoundException e ) { logger . logp ( Level . SEVERE , "JspClassFactory" , "getInstanceOf" , "jsp.error.function.classnotfound" , ( String ) classesMap . get ( key ) ) ; } return null ; }
Creates an instance of the type of class specified by the key arg dependent on the value stored in the classesMap .