public static < T > T newInstance ( final Class < T > clazz ) { try { return clazz . newInstance ( ) ; } catch ( InstantiationException | IllegalAccessException e ) { throw new ClassApiException ( e ) ; } }
Creates new instance of class rethrowing all exceptions in runtime .