class ReflectionUtil {

    public static <T> T newInstance(Class<T> clazz) {
        try {
            return clazz.newInstance();
        } catch (InstantiationException | IllegalAccessException e) {
            log.error("Error instantiating " + clazz.getName(), e);
            throw new RuntimeException(e);
        }
    }

}