public static <T> T newInstance(Class<T> cls)
    {
        try
        {
            return cls.newInstance();
        }
        catch (InstantiationException e)
        {
            throw new ReflectionUtilsException("InstantiationException whilst instantiating class.", e);
        }
        catch (IllegalAccessException e)
        {
            throw new ReflectionUtilsException("IllegalAccessException whilst instantiating class.", e);
        }
    }
public static <T> T newInstance(Class<T> cls)
    {
        try
        {
            return cls.newInstance();
        }
        catch (InstantiationException e)
        {
            throw new ReflectionUtilsException("InstantiationException whilst instantiating class.", e);
        }
        catch (IllegalAccessException e)
        {
            throw new ReflectionUtilsException("IllegalAccessException whilst instantiating class.", e);
        }
    }
public static < T > T newInstance ( Class < T > cls ) { try { return cls . newInstance ( ) ; } catch ( InstantiationException e ) { throw new ReflectionUtilsException ( "InstantiationException whilst instantiating class." , e ) ; } catch ( IllegalAccessException e ) { throw new ReflectionUtilsException ( "IllegalAccessException whilst instantiating class." , e ) ; } }
Creates an instance of a Class, instantiated through its no-args constructor.

@param  cls The Class to instantiate.
@param  <T> The Class type.

@return An instance of the class.
Creates an instance of a Class instantiated through its no - args constructor .