< T > Class < T > loadClass ( String name ) throws ClassNotFoundException { ClassLoader cl = Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( null == cl ) { cl = ToHelper . class . getClassLoader ( ) ; } return ( Class < T > ) cl . loadClass ( name ) ; }
Load class with given name from the correct class loader .