code: private void loadConfiguration() {
  
          CmsRpcAction<CmsGalleryConfiguration> action = new CmsRpcAction<CmsGalleryConfiguration>() {
  
              @Override
              public void execute() {
  
                  start(200, false);
                  m_galleryService.getAdeViewModeConfiguration(this);
              }
  
              @Override
              protected void onResponse(CmsGalleryConfiguration result) {
  
                  stop(false);
                  if (result.getReferencePath() == null) {
                      result.setReferencePath(CmsCoreProvider.get().getUri());
                  }
                  openDialog(result);
  
              }
          };
          if (m_dialog != null) {
              openDialog(null);
          } else {
              action.execute();
          }
  
      }
docs: Loads the configuration from the server.<p>