The CacheDeploymentListener state is not passed to another deployment phase, it only lasts as long as the try block (the state is cleared in the finally block).