code: protected static SessionController create(String sessionId, boolean originator) {
          Map<String, Object> args = new HashMap<>();
          args.put("id", sessionId);
          args.put("title", StrUtil.formatMessage("@cwf.chat.session.title"));
          args.put("originator", originator ? true : null);
          Window dlg = PopupDialog.show(DIALOG, args, true, true, false, null);
          return (SessionController) FrameworkController.getController(dlg);
      }
docs: Creates a chat session bound to the specified session id.
  
  @param sessionId The chat session id.
  @param originator If true, this user is originating the chat session.
  @return The controller for the chat session.