Preservation of stability in the presence of structural and/or parametric changes is an important issue in the study of dynamical systems. A specific case is the synchronization of chaos in complex networks where synchronization should be preserved in spite of changes in the network parameters and connectivity. In this work, a methodology to establish conditions for preservation of stability in a class of dynamical system is given in terms of Lyapunov methods. The idea is to construct a group of dynamical transformations under which stability is retained along certain manifolds. Some synchronization examples illustrate the results.