@QueryParam("pgNum") Integer pgNum,
@QueryParam("pgSze") Integer pgSze) {
PagingRequest pr = buildPagingRequest(pgIdx, pgNum, pgSze);
PortfolioHistoryRequest request = new PortfolioHistoryRequest(data().getPortfolio().getUniqueId());
request.setPagingRequest(pr);
PortfolioHistoryResult result = data().getPortfolioMaster().history(request);
FlexiBean out = createRootData();
out.put("versionsResult", result);
out.put("versions", result.getPortfolios());
out.put("paging", new WebPaging(result.getPaging(), data().getUriInfo()));
String json = getFreemarker().build(JSON_DIR + "portfolioversions.ftl", out);
return Response.ok(json).build();
}