code: public void setCurrentPwd(String currentPwd) {
  
          if (m_userName == null) {
              throw new CmsIllegalStateException(Messages.get().container(Messages.ERR_INVALID_USER_CONTEXT_0));
          }
          try {
              m_cms.readUser(m_userName, currentPwd);
          } catch (CmsException e) {
              throw new CmsIllegalArgumentException(
                  Messages.get().container(Messages.ERR_INVALID_USER_PWD_1, m_userName));
          }
          m_currentPwd = currentPwd;
      }
docs: Sets the current password.<p>
  
  @param currentPwd the current password to set