class ReflectionUtils {

    public static <T> T newInstance(Class<T> type) throws ReflectiveOperationException {
        Constructor<T> constructor = type.getDeclaredConstructor(new Class<?>[]{});
        constructor.setAccessible(true);
        return constructor.newInstance(new Object[]{});
    }

}