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 .