@ SuppressWarnings ( "unchecked" ) public static < T > Class < T > getExistingClass ( ClassLoader classLoader , String className ) { try { return ( Class < T > ) Class . forName ( className , true , classLoader ) ; } catch ( ClassNotFoundException e ) { return null ; } }
Check if this class already exists in the class loader and return it if it does