@ SuppressWarnings ( "unchecked" ) private < T > Class < T > loadClassIfVisible ( String className , ClassLoader classLoader ) { try { Class < T > klass = ( Class < T > ) classLoader . loadClass ( className ) ; return klass ; } catch ( ClassNotFoundException e ) { return null ; } }
Loads a class with the given name from the given class loader .