T () { try { Class<T> tClass = getInstanceClass(); Constructor<T> constructor = tClass.getDeclaredConstructor(); constructor.setAccessible(true); return tClass.newInstance(); } catch (InstantiationException | NoSuchMethodException | ClassNotFoundException | IllegalAccessException e) { throw new RuntimeException(e); } }