code: public Response fetchHistoryAsOf(@PathParam("id") URI_ID id,
                                       @PathParam("asof") final Timestamp asOf) throws Exception {
          final MODEL_ID mId = tryConvertId(id);
          matchedFetchHistoryAsOf(mId, asOf);
          final Query<MODEL> query = server.find(modelType);
  
          defaultFindOrderBy(query);
  
          Object entity = executeTx(t -> {
              configDefaultQuery(query);
              configFetchHistoryAsOfQuery(query, mId, asOf);
              applyUriQuery(query, false);
              MODEL model = query.asOf(asOf).setId(mId).findOne();
              return processFetchedHistoryAsOfModel(mId, model, asOf);
          });
  
          if (isEmptyEntity(entity)) {
              return Response.noContent().build();
          }
          return Response.ok(entity).build();
      }
docs: find history as of timestamp
  
  @param id   model id
  @param asOf Timestamp
  @return history model
  @throws java.lang.Exception any error