Use Constructor.newInstance instead of Class.newInstance to make it more reliable