new ZNode(path).delete();
String broker = exchangeFarm.getCurrentExchangeHost(ex);
if(broker != null) {
BrokerAdmin brokerAdmin = new BrokerAdmin(broker);
brokerAdmin.jmxConnectServer();
try {
brokerAdmin.setExchangeAttrib(ex, "LimitBehavior", "FLOW_CONTROL");
}
finally {
brokerAdmin.jmxCloseServer();