code: private void saveUser() throws CmsException {
  
          updateUser(m_user);
  
          if (!CmsStringUtil.isEmptyOrWhitespaceOnly(m_pw.getPassword1())) {
              if (isPasswordValid()) {
                  m_cms.setPassword(m_user.getName(), m_pw.getPassword1());
              }
          }
  
          m_cms.writeUser(m_user);
  
      }
docs: Saves changes to an existing user.<p>
  
  @throws CmsException exception