Here you can find the source of newInstance(Class extends T> clazz)
public static <T> T newInstance(Class<? extends T> clazz)
//package com.java2s; //License from project: Open Source License public class Main { public static <T> T newInstance(Class<? extends T> clazz) { try {/* w w w . j av a 2s . c o m*/ return clazz.newInstance(); } catch (Exception e) { throw new RuntimeException("Cant create bean", e); } } }