class NpmSearchHitExtractor extends ComponentSupport {

  @Nullable
  public DateTime extractLastModified(final SearchHit searchHit) {
    Number timestamp = extractAttribute(searchHit, "content", P_LAST_MODIFIED, Number.class);
    if (timestamp != null) {
      return new DateTime(timestamp.longValue());
    }
    else {
      return null;
    }
  }

}