code: public void createNewGallery(final CmsUUID parentId, final int galleryTypeId, final String title) {
  
          final String parentFolder = parentId != null
          ? getEntryById(parentId).getSitePath()
          : CmsStringUtil.joinPaths(m_data.getRoot().getSitePath(), m_data.getDefaultGalleryFolder());
  
          CmsRpcAction<CmsGalleryFolderEntry> action = new CmsRpcAction<CmsGalleryFolderEntry>() {
  
              @Override
              public void execute() {
  
                  getService().createNewGalleryFolder(parentFolder, title, galleryTypeId, this);
              }
  
              @Override
              protected void onResponse(CmsGalleryFolderEntry result) {
  
                  CmsSitemapView.getInstance().displayNewGallery(result);
  
              }
          };
          action.execute();
      }
docs: Creates a new gallery folder of the given type.<p>
  
  @param parentId the parent folder id
  @param galleryTypeId the folder type id
  @param title the folder title