class CacheInfo {

  public static void applyToAsset(final Asset asset, final CacheInfo cacheInfo) {
    checkNotNull(asset);
    checkNotNull(cacheInfo);
    final NestedAttributesMap cache = asset.attributes().child(CACHE);
    cache.set(LAST_VERIFIED, toDate(cacheInfo.getLastVerified()));
    cache.set(CACHE_TOKEN, cacheInfo.getCacheToken());
  }

  public  CacheInfo(final DateTime lastVerified, @Nullable final String cacheToken);

}