code: public void displayNewGallery(CmsGalleryFolderEntry galleryFolder) {
  
          String parent = CmsResource.getParentFolder(galleryFolder.getSitePath());
          CmsSitemapTreeItem parentItem = getTreeItem(parent);
          if (parentItem != null) {
              CmsUUID parentId = parentItem.getEntryId();
              m_controller.updateEntry(parentId);
          } else {
              m_controller.loadPath(parent);
          }
          CmsGalleryTreeItem typeItem = m_galleryTypeItems.get(galleryFolder.getResourceType());
          CmsGalleryTreeItem folderItem = createGalleryFolderItem(galleryFolder);
          if ((parentItem != null) && m_galleryTreeItems.containsKey(parentItem.getEntryId())) {
              CmsGalleryTreeItem galleryParent = m_galleryTreeItems.get(parentItem.getEntryId());
              galleryParent.addChild(folderItem);
              galleryParent.setOpen(true);
          } else {
              typeItem.addChild(folderItem);
          }
          m_galleryTreeItems.put(galleryFolder.getStructureId(), folderItem);
          typeItem.setOpen(true);
          // in case the type item had been hidden
          typeItem.getElement().getStyle().clearDisplay();
          m_noGalleriesLabel.getElement().getStyle().setDisplay(Display.NONE);
      }
docs: Displays a newly created gallery folder.<p>
  
  @param galleryFolder the gallery folder