PersistenceContext persistenceContext = buildPersistenceContext(phaseContext);
PersistenceOperations operations = persistenceContext.getEntityPlugin().getPersistenceOperations();
QueryResult<HistoryEntry> entries = operations.getHistory(ids.get(0),start,limit,persistenceContext);
HistoryResponse historyResponse = new HistoryResponse();
historyResponse.setEntries(entries.getItems());
historyResponse.setTotalCount(entries.getTotalCount());
historyResponse.setStart(entries.getStart());
historyResponse.setResponseCount(entries.getResponseCount());
phaseContext.setResult(historyResponse);
response.setResponseCode(200);
}