end = matcher.group(2) != null ? Integer.valueOf(matcher.group(2)) : -1;
logger.debug("Pagination: {}-{}", start, end);
}
controller.setRange(start, end);
List<?> list = (List<?>) pjp.proceed();
<BUG>if (matcher != null && matcher.matches()) {
String rangeStr = String.format("items %d-%d/%d", start, start + list.size() - 1, -1);
</BUG>
HttpServletResponse response = responseProviderService.getResponse();
response.addHeader("Content-Range", rangeStr);

end = matcher.group(2) != null ? Integer.valueOf(matcher.group(2)) : -1;
logger.debug("Pagination: {}-{}", start, end);
}
controller.setRange(start, end);
List<?> list = (List<?>) pjp.proceed();
if (matcher != null && matcher.matches()) {
int totalSize = -1;
if (list instanceof PaginationListDecorator) {
PaginationListDecorator<?> pl = (PaginationListDecorator<?>) list;
totalSize = pl.getTotalSize();
}
String rangeStr = String.format("items %d-%d/%d", start, start + list.size() - 1, totalSize);
HttpServletResponse response = responseProviderService.getResponse();
response.addHeader("Content-Range", rangeStr);
