public static <T> T newInstance(Constructor<T> constructor, Object... args) {
        try {
            return constructor.newInstance(args);
        } catch (Exception e) {
            throw new ClientException(e);
        }
    }
public static < T > T newInstance ( Constructor < T > constructor , Object ... args ) { try { return constructor . newInstance ( args ) ; } catch ( Exception e ) { throw new ClientException ( e ) ; } }
Invokes a constructor and hides all checked exceptions.
@param constructor   the constructor
@param args          zero, one or more arguments
@param <T>           target type
@return a new object