On the generalized continuity equation