Contraction of magnetized gas to the central gravitator and the production of magnetically accelerated jets