code: private void updateItem(CmsUUID itemId, boolean remove) {
  
          if (remove) {
              String idStr = itemId != null ? itemId.toString() : null;
              m_container.removeItem(idStr);
              return;
          }
  
          CmsObject cms = A_CmsUI.getCmsObject();
          try {
              CmsResource resource = cms.readResource(itemId, CmsResourceFilter.ALL);
              fillItem(cms, resource, OpenCms.getWorkplaceManager().getWorkplaceLocale(cms));
  
          } catch (CmsVfsResourceNotFoundException e) {
              m_container.removeItem(itemId);
              LOG.debug("Failed to update file table item, removing it from view.", e);
          } catch (CmsException e) {
              LOG.error(e.getLocalizedMessage(), e);
          }
      }
docs: Updates the given item in the file table.<p>
  
  @param itemId the item id
  @param remove true if the item should be removed only