class TwoDigitYearLocalDateConverter implements Converter<LocalDate, LocalDate> {

    @CheckForNull
    @Override
    public Result<LocalDate> convertToModel(@CheckForNull LocalDate value, ValueContext context) {
        if (value == null) {
            return Result.ok(null);
        } else {
            return Result.ok(TwoDigitYearUtil.convert(value));
        }
    }

}