} else if (Short.class.equals(toType)
|| Short.TYPE.equals(toType)) {
result = new StringToShortValidator((NumberFormatConverter) converter);
} else if (Date.class.equals(toType)
&& converter instanceof StringToDateConverter) {
result = new StringToDateValidator(
(StringToDateConverter) converter);
}
if (result != null) {
validatorsByConverter.put(converter, result);