code: public void setNewPwd(String newPwd) {
  
          // leave password unchanged, if the new password is empty
          if (CmsStringUtil.isEmpty(newPwd)) {
              return;
          }
          try {
              OpenCms.getPasswordHandler().validatePassword(newPwd);
          } catch (CmsSecurityException e) {
              throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_INVALID_NEWPWD_0), e);
          }
          m_newPwd = newPwd;
      }
docs: Sets the new password.<p>
  
  @param newPwd the new password to set