class Content implements Payload {

  public static void applyToAsset(final Asset asset, final AttributesMap contentAttributes) {
    checkNotNull(asset);
    checkNotNull(contentAttributes);
    final NestedAttributesMap assetAttributes = asset.attributes().child(CONTENT);
    assetAttributes.set(P_LAST_MODIFIED, toDate(contentAttributes.get(Content.CONTENT_LAST_MODIFIED, DateTime.class)));
    assetAttributes.set(P_ETAG, contentAttributes.get(Content.CONTENT_ETAG, String.class));
    final CacheInfo cacheInfo = contentAttributes.get(CacheInfo.class);
    if (cacheInfo != null) {
      CacheInfo.applyToAsset(asset, cacheInfo);
    }
  }

  public  Content(final Payload payload);
  protected  Content(final Payload payload, final AttributesMap attributes);

}