Here you can find the source of loadClass(final String className)
@SuppressWarnings({ "unchecked" }) public static <T> Class<T> loadClass(final String className)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); // public class Main { @SuppressWarnings({ "unchecked" }) public static <T> Class<T> loadClass(final String className) { try {/*from ww w . j av a 2s . com*/ return (Class<T>) Thread.currentThread().getContextClassLoader().loadClass(className); } catch (ClassNotFoundException e) { throw new IllegalArgumentException("Unable to load class " + className); } } }