code: public void validate() {
  
          if (CmsStringUtil.isEmpty(getNewPwd())) {
              throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_INVALID_NEWPWD_0));
          }
          if (!getNewPwd().equals(getConfirmation())) {
              throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_NEWPWD_MISMATCH_0));
          }
      }
docs: Validates that the confirmation matches the new password.<p>