protected Page<T> slice(List<T> list, Pageable pageable) {
		int to = Math.min(list.size(), pageable.getOffset() + pageable.getPageSize());
		List<T> data = list.subList(pageable.getOffset(), to);
		return new PageImpl<T>(data, pageable, list.size());
	}
Post-process the list to only return elements matching the page request.
spring-xd-analytics/src/main/java/org/springframework/xd/store/AbstractInMemoryRepository.java