if (AbstractBaseAlgorithm.class.isAssignableFrom(clazz)) {
AbstractBaseAlgorithm algorithm = (AbstractBaseAlgorithm)beanFactory.getBean( name );
super.setup(algorithmElement, algorithm);
return algorithm;
} if (CalculatedFieldAlgorithm.class.isAssignableFrom(clazz)) {
CalculatedFieldAlgorithm algorithm = (CalculatedFieldAlgorithm)beanFactory.getBean( name );
return algorithm;
} else {
throw new FormsException("Spring bean " + name + " is not a " + CalculatedFieldAlgorithm.class.getName(), DomHelper.getLocationObject( algorithmElement ));
}
} catch(NoSuchBeanDefinitionException nsbde) {