if(limit != null && limit < 1)
throw new BadRequestException("The limit parameter must be greater than zero.");
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());