class StringToDateConverter extends AbstractGenericConverter<String, Date> {

    @Override
    public Date convert(String source) {
        List<DateGroup> groups = dateParser.parse(source);
        if (groups.size() > 0 && groups.get(0).getDates().size() > 0) {
            return groups.get(0).getDates().get(0);
        }
        throw new ConverterException("can not convert '" + source + "' to java.util.Date");
    }

}