final Map<String, Object> props = ServiceHelper.createMap(Endpoint.NAME, "blocking");
nmr.getEndpointRegistry().register(blocking, props);
final CountDownLatch done = new CountDownLatch(1);
final Channel channel = nmr.createChannel();
final Exchange exchange = channel.createExchange(Pattern.InOnly);
exchange.setTarget(nmr.getEndpointRegistry().lookup(props));
Thread thread = new Thread(new Runnable() {
public void run() {
channel.sendSync(exchange);