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