} else if (instance != null) {
answer = new BeanExpression(instance, getMethod());
} else {
String ref = beanName();
// if its a ref then check that the ref exists
BeanHolder holder = new RegistryBean(camelContext, ref);
// get the bean which will check that it exists
instance = holder.getBean();
answer = new BeanExpression(instance, getMethod());
}
validateHasMethod(camelContext, instance, beanType, getMethod());
return answer;