public class DateConverterFactory implements ConverterFactory
{
public Converter createConverter(Annotation annotation)
{
ConvertDate annot = (ConvertDate) annotation;
DatePatternConverter converter = new DatePatternConverter(annot.pattern());
converter.setTargetClass(Date.class);
return converter;
}