code: @Override
      public CmsResource getResource(CmsObject cms, CmsListItem item) {
  
          CmsResource res = null;
  
          CmsUUID id = new CmsUUID(item.getId());
          if (!id.isNullUUID()) {
              try {
                  res = cms.readResource(id, CmsResourceFilter.ALL);
              } catch (CmsException e) {
                  // should never happen
                  if (LOG.isErrorEnabled()) {
                      LOG.error(e.getLocalizedMessage(), e);
                  }
              }
          }
  
          return res;
      }
docs: Returns the resource for the given item.<p>
  
  @param cms the cms object
  @param item the item
  
  @return the resource