return answer;
if (beanType != null) { return beanType.newInstance(); } else if (beanName == null) { throw new IllegalArgumentException("Property 'beanName', 'beanType' or 'beanClassName' must be set!"); } else if (beanFactory == null) { throw new IllegalArgumentException("Property 'beanName' specified, but no BeanFactory set!"); } else { Object answer = beanFactory.getBean(beanName); if (answer == null) { throw new NoSuchBeanException(beanName, this); } return answer; }
    protected Object createBean() {        if (beanName == null) {            throw new IllegalArgumentException("Property 'beanName' has not been set!");        }        Object answer = beanFactory.getBean(beanName);        if (answer == null) {            throw new NoSuchBeanException(beanName, this);        }        return answer;    }