code: public boolean sync(NewRelicCache cache)
      {
          if(cache == null)
              throw new IllegalArgumentException("null cache");
  
          checkInitialize(cache);
          boolean ret = isInitialized();
          if(!ret)
              throw new IllegalStateException("cache not initialized");
  
          clear(cache);
  
          if(ret)
              ret = syncApplications(cache);
          if(ret)
              ret = syncPlugins(cache);
          if(ret)
              ret = syncMonitors(cache);
          if(ret)
              ret = syncServers(cache);
          if(ret)
              ret = syncLabels(cache);
          if(ret)
              ret = syncAlerts(cache);
          if(ret)
              ret = syncDashboards(cache);
  
          return ret;
      }
docs: Synchronises the cache.
  @param cache The provider cache