code: CmsAvailabilityInfoBean getAvailabilityInfo(CmsObject cms, CmsResource res) throws CmsException {
  
          CmsAvailabilityInfoBean result = new CmsAvailabilityInfoBean();
          I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(res.getTypeId());
          result.setResType(type.getTypeName());
  
          result.setDateReleased(res.getDateReleased());
          result.setDateExpired(res.getDateExpired());
  
          String notificationInterval = cms.readPropertyObject(
              res,
              CmsPropertyDefinition.PROPERTY_NOTIFICATION_INTERVAL,
              false).getValue();
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(notificationInterval)) {
              result.setNotificationInterval(Integer.valueOf(notificationInterval).intValue());
          }
  
          String notificationEnabled = cms.readPropertyObject(
              res,
              CmsPropertyDefinition.PROPERTY_ENABLE_NOTIFICATION,
              false).getValue();
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(notificationEnabled)) {
              result.setNotificationEnabled(Boolean.valueOf(notificationEnabled).booleanValue());
          }
  
          result.setHasSiblings(cms.readSiblings(res, CmsResourceFilter.ALL).size() > 1);
  
          result.setResponsibles(getResponsibles(cms, res));
  
          return result;
      }
docs: Returns the availability info.<p>
  
  @param cms the cms context
  @param res the resource
  
  @return the info
  
  @throws CmsException if reading the info fails