The Hutchinson-Barnsley theory for generalized iterated function systems by means of infinite iterated function systems