protected Object createBean() { if (beanName == null) {
protected Object createBean() throws ClassNotFoundException, InstantiationException, IllegalAccessException { if (beanName == null && beanType == null) {
    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;    }