docs: private void init(Window window, CmsResourceTypeApp app) {
  
          CmsObject rootCms = null;
          try {
              m_cms = OpenCms.initCmsObject(A_CmsUI.getCmsObject());
              rootCms = OpenCms.initCmsObject(m_cms);
              rootCms.getRequestContext().setSiteRoot("");
          } catch (CmsException e1) {
              m_cms = A_CmsUI.getCmsObject();
              rootCms = m_cms;
          }
          CmsVaadinUtils.readAndLocalizeDesign(this, CmsVaadinUtils.getWpMessagesForCurrentLocale(), null);
  
          m_typeID.addValidator(new IDValidator());
          m_typeShortName.addValidator(new NameValidator());
  
          m_parentSchema.setCmsObject(rootCms);
          m_parentFormatter.setCmsObject(rootCms);
          m_bundle.setCmsObject(rootCms);
          m_config.setCmsObject(rootCms);
  
          m_parentSchema.setRequired(true);
          m_parentFormatter.setRequired(true);
          m_typeID.setRequired(true);
          m_typeDescription.setRequired(true);
          m_typeShortName.setRequired(true);
          m_typeXPathName.setRequired(true);
          m_bundle.setRequired(true);
  
          m_typeName.setRequired(true);
  
          m_parentSchema.setRequiredError(CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_EDIT_NOT_EMPTY_0));
          m_parentFormatter.setRequiredError(CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_EDIT_NOT_EMPTY_0));
          m_typeID.setRequiredError(CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_EDIT_NOT_EMPTY_0));
          m_typeDescription.setRequiredError(CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_EDIT_NOT_EMPTY_0));
          m_typeShortName.setRequiredError(CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_EDIT_NOT_EMPTY_0));
          m_typeXPathName.setRequiredError(CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_EDIT_NOT_EMPTY_0));
          m_bundle.setRequiredError(CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_EDIT_NOT_EMPTY_0));
  
          m_typeName.setRequiredError(CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_EDIT_NOT_EMPTY_0));
  
          m_typeID.setValue(String.valueOf(getFreeId()));
          m_ok.addClickListener(e -> submit(window, app));
          m_cancel.addClickListener(e -> window.close());
  
      }