docs: public void login(String username, String password) {
  
          username = OpenCms.getImportExportManager().translateUser(username);
          try {
              m_cms.loginUser(username, password);
              // reset the settings, this will switch the startup site root etc.
              m_shell.initSettings();
              m_shell.getOut().println(getMessages().key(Messages.GUI_SHELL_LOGIN_1, whoami().getName()));
              // output the login message if required
              CmsLoginMessage message = OpenCms.getLoginManager().getLoginMessage();
              if ((message != null) && (message.isActive())) {
                  m_shell.getOut().println(message.getMessage());
              }
          } catch (Exception exc) {
              m_shell.getOut().println(getMessages().key(Messages.GUI_SHELL_LOGIN_FAILED_0));
          }
      }