code: public void setUpSiteInfo(Query query) {
      General general = query.getGeneral();
      siteinfo = new SiteInfoImpl(general, query.getNamespaces());
    }
docs: setup siteinfo for a query (e.g. for testing)
  
  @param query