made response wrapper class generation in inner class optional