class NpmSearchResponseFactory extends ComponentSupport {

  public NpmSearchResponse buildEmptyResponse() {
    NpmSearchResponse response = new NpmSearchResponse();
    response.setObjects(emptyList());
    response.setTime(formatSearchResponseDate(DateTime.now()));
    response.setTotal(0);
    return response;
  }

  @Inject public  NpmSearchResponseFactory(final NpmSearchHitExtractor npmSearchHitExtractor);

}