}
<BUG>return body != null ? body.toString() : null;
}</BUG>
@ManagedOperation(description = "Get message as XML from queue by index")
<BUG>public String browseMessageAsXml(Integer index) {

if (index >= endpoint.getExchanges().size()) {
return null;</BUG>
}
<BUG>Exchange exchange = endpoint.getExchanges().get(index);
if (exchange == null) {</BUG>
return null;

}
Exchange exchange = exchanges.get(index);
if (exchange == null) {
return null;
}
