updating agent and getting BeanManager in static way