code: private void loadGalleries() {
  
          CmsRpcAction<List<CmsGalleryFolderBean>> action = new CmsRpcAction<List<CmsGalleryFolderBean>>() {
  
              @Override
              public void execute() {
  
                  start(200, true);
                  List<String> types = new ArrayList<String>();
                  for (CmsResourceTypeBean type : m_dialogBean.getTypes()) {
                      types.add(type.getType());
                  }
  
                  getGalleryService().getGalleries(types, this);
              }
  
              @Override
              protected void onResponse(List<CmsGalleryFolderBean> result) {
  
                  m_dialogBean.setGalleries(result);
                  m_handler.setGalleriesTabContent(result, m_searchObject.getGalleries());
                  m_handler.onGalleriesTabSelection();
                  stop(false);
              }
          };
          action.execute();
      }
docs: Loading all available galleries.<p>