code: void updateResourceInfo(final String path) {
  
          m_resourceInfoPanel.clear();
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(path)) {
              m_resourceInfoPanel.setVisible(false);
              if (m_hasImage) {
                  removeStyleName(I_CmsLayoutBundle.INSTANCE.galleryFieldCss().hasImage());
                  m_imagePreview.setInnerHTML("");
              }
          } else {
              m_resourceInfoPanel.getElement().getStyle().clearDisplay();
              if (m_hasImage) {
                  addStyleName(I_CmsLayoutBundle.INSTANCE.galleryFieldCss().hasImage());
              }
              CmsRpcAction<CmsResultItemBean> action = new CmsRpcAction<CmsResultItemBean>() {
  
                  @Override
                  public void execute() {
  
                      getGalleryService().getInfoForResource(path, m_configuration.getLocale(), this);
                  }
  
                  @Override
                  protected void onResponse(CmsResultItemBean result) {
  
                      displayResourceInfo(result);
                  }
              };
              action.execute();
          }
          fireResize();
      }
docs: Updates the resource info.<p>
  
  @param path the resource path