if (webAppCtx != null) { return webAppCtx.getBean(beanName); } else { return null; }
return webAppCtx.getBean(beanName);
    public Object getBean(MessageContext msgContext, String beanName) throws Exception {        initWebAppContext(msgContext);        if (webAppCtx != null) {            return webAppCtx.getBean(beanName);        }        else {            return null;        }    }