@Override
  public Character validate(String fieldName, String value) throws ValidationException {
    if (value == null) {
      return null;
    }
    if (value.length() != 1) {
      throw new ValidationException(fieldName, value, "not a single character");
    }
    return value.charAt(0);
  }