@ManagedOperation(description = "Current number of Exchanges in Queue")
public long queueSize() {
return endpoint.getExchanges().size();
}
@ManagedOperation(description = "Get Exchange from queue by index")
<BUG>public String browseExchange(Integer index) {
if (index >= endpoint.getExchanges().size()) {
return null;</BUG>
}
<BUG>Exchange exchange = endpoint.getExchanges().get(index);
if (exchange == null) {</BUG>
return null;

@ManagedOperation(description = "Current number of Exchanges in Queue")
public long queueSize() {
return endpoint.getExchanges().size();
