code: public static CmsPublishData prefetch(HttpServletRequest request) throws CmsRpcException {
  
          CmsPublishService srv = new CmsPublishService();
          srv.setCms(CmsFlexController.getCmsObject(request));
          srv.setRequest(request);
          CmsPublishData result = null;
          HashMap<String, String> params = Maps.newHashMap();
          params.put("prefetch", "true");
          try {
              result = srv.getInitData(params);
          } finally {
              srv.clearThreadStorage();
          }
          return result;
      }
docs: Fetches the publish data.<p>
  
  @param request the servlet request
  
  @return the publish data
  
  @throws CmsRpcException if something goes wrong