String[] boundaries = range.split("=")[1].split("-");
first = Integer.parseInt(boundaries[0]);
last = Integer.parseInt(boundaries[1]);
}
final MessageCollector messageCollector = new MessageCollector(first, last);
queue.visit(messageCollector);
response.setContentType("application/json");
final List<Map<String, Object>> messages = messageCollector.getMessages();
int queueSize = ((Number) queue.getStatistics().getStatistic(Queue.QUEUE_DEPTH_MESSAGES)).intValue();
String min = messages.isEmpty() ? "0" : messages.get(0).get("position").toString();