Added "onMissingMethod" to gateway generation