public static synchronized RestXqServiceRegistry getRegistry(final BrokerPool pool) {
if(registry == null) {
LOG.info("Initialising RESTXQ...");
registry = new RestXqServiceRegistryImpl();
//add logging listener
registry.addListener(new RestXqServiceRegistryLogger());
//add compiled cache cleanup listener