@SuppressWarnings("unchecked")
    public static <T> T newInstanceOf(final String className) throws ClassNotFoundException, IllegalAccessException,
            InstantiationException, NoSuchMethodException, InvocationTargetException {
        return newInstanceOf((Class<T>) loadClass(className));
    }
@ SuppressWarnings ( "unchecked" ) public static < T > T newInstanceOf ( final String className ) throws ClassNotFoundException , IllegalAccessException , InstantiationException , NoSuchMethodException , InvocationTargetException { return newInstanceOf ( ( Class < T > ) loadClass ( className ) ) ; }
Loads and instantiates a Class using the default constructor.

@param className The class name.
@return new instance of the class.
@throws ClassNotFoundException if the class isn't available to the usual ClassLoaders
@throws IllegalAccessException if the class can't be instantiated through a public constructor
@throws InstantiationException if there was an exception whilst instantiating the class
@throws NoSuchMethodException if there isn't a no-args constructor on the class
@throws InvocationTargetException if there was an exception whilst constructing the class
@since 2.1