code: @Override
    public final boolean isValid(final String pvalue, final ConstraintValidatorContext pcontext) {
      if (StringUtils.isEmpty(pvalue)) {
        return true;
      }
      return charsetEncoder.canEncode(pvalue);
    }
docs: {@inheritDoc} check if given string is a valid mail.
  
  @see javax.validation.ConstraintValidator#isValid(java.lang.Object,
  javax.validation.ConstraintValidatorContext)