updates the code to use the getBeanManager