URL resource = Main.class.getResource(configurationFile);
if(resource == null) {
throw new ConfigurationException("Could not find configuration file " +
configurationFile);
}
server = new Sentinel(resource.getFile());
server.run();
// wait for server to be ready
while(!server.isReady()) {
}