/** * Retrieve the bean that matches the key * * @return Return the object identified by the key. * @param key The key identifying the bean. */ public Object getBean(String key) { BeanWrapper beanWrapper = (BeanWrapper) beanManager.getBean(key); if (beanWrapper == null) { return beanWrapper; } return beanWrapper.getProxy(); }