Enabling dynamic spring context to be able to install listeners flexibly