code: private CmsPublishOptions getCachedOptions() {
  
          CmsPublishOptions cache = (CmsPublishOptions)getRequest().getSession().getAttribute(
              SESSION_ATTR_ADE_PUB_OPTS_CACHE);
          if (cache == null) {
              CmsUserSettings settings = new CmsUserSettings(getCmsObject());
              cache = new CmsPublishOptions();
              cache.setIncludeSiblings(settings.getDialogPublishSiblings());
              getRequest().getSession().setAttribute(SESSION_ATTR_ADE_PUB_OPTS_CACHE, cache);
          }
          return cache;
  
      }
docs: Returns the cached publish options, creating it if it doesn't already exist.<p>
  
  @return the cached publish options