Runtime.getRuntime().addShutdownHook(hook);
}
public static CuratorProjectionServer startServer(String configurationSource) throws Exception
{
Configuration configuration = new ConfigurationBuilder(configurationSource).build();
final CuratorProjectionServer server = new CuratorProjectionServer(configuration);
server.start();
return server;
}