BrokerService service = new BrokerService();
service.setBrokerName("broker2");
service.setPersistent(false);
remoteConnector = service.addConnector(getRemoteURI());
remoteProxyConnector = new ProxyConnector();
remoteProxyConnector.setName("remoteProxy");
remoteProxyConnector.setBind(new URI(getRemoteProxyURI()));
remoteProxyConnector.setRemote(new URI("fanout:static://"+getLocalURI()));
service.addProxyConnector(remoteProxyConnector);