for (Annotation annotation : annotations)
{
Class<? extends Annotation> annotationType = annotation.annotationType();
ConverterFactoryClass factoryClass = annotationType.getAnnotation(ConverterFactoryClass.class);
if (factoryClass != null)
{
if (found)
{
throw new ApplicationConfigurationException(
"Only one converter annotation may be placed in method " + method.getName()
+ "() in class " + method.getDeclaringClass().getName());
}
ConverterFactory factory = ReflectHelper.createInstance(factoryClass.value(),
ConverterFactory.class);
converter = factory.createConverter(annotation);
found = true;
}