private SimpleObject searchInner(RequestContext context,long snapshotTime) throws ResponseException {
  List<SimpleObject> results=new ArrayList<>();
  for (  T item : searchImpl(context,snapshotTime)) {
    results.add(convertToJson(item,context,snapshotTime));
  }
  SimpleObject response=new SimpleObject();
  response.put("results",results);
  response.put("snapshotTime",Utils.toIso8601(new Date(snapshotTime)));
  return response;
}

private SimpleObject searchInner ( RequestContext context , long snapshotTime ) throws ResponseException { List < SimpleObject > results = new ArrayList < > ( ) ; for ( T item : searchImpl ( context , snapshotTime ) ) { results . add ( convertToJson ( item , context , snapshotTime ) ) ; } SimpleObject response = new SimpleObject ( ) ; response . put ( "results" , results ) ; response . put ( "snapshotTime" , Utils . toIso8601 ( new Date ( snapshotTime ) ) ) ; return response ; }
wraps searchimpl , converting items ( of type t ) to simpleobjects .
