code: static void openEditor(String targetPath) {
  
          String siteRoot = CmsCoreProvider.get().getSiteRoot();
          if (targetPath.startsWith(siteRoot)) {
              targetPath = targetPath.substring(siteRoot.length());
              // prepend slash if necessary
              if (!targetPath.startsWith("/")) {
                  targetPath = "/" + targetPath;
              }
          }
          CmsSitemapController controller = CmsSitemapView.getInstance().getController();
          controller.leaveEditor(targetPath);
      }
docs: Opens the container page editor for the given model resource.<p>
  
  @param targetPath the model resource path