if (endpointMBean instanceof CamelBrowsableEndpointMBean) {
CamelBrowsableEndpointMBean browsable = (CamelBrowsableEndpointMBean) endpointMBean;
long size = browsable.queueSize();
try {
for (int i = 0; i < size; i++) {
String xml = browsable.browseMessageAsXml(i, true);
if (xml != null) {
Exchange exchange = Exchanges.unmarshalNoNamespaceXmlString(xml);
if (exchange != null) {
IMessage in = exchange.getIn();
if (in != null) {