}
}, System.currentTimeMillis() % (1000 * 60 * 60), 1, TimeUnit.HOURS);
try {
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
executorService.shutdownNow();
}
});
} catch (IllegalStateException e) {
executorService.shutdownNow();
throw new IllegalStateException("Unable to create registry event dispatcher during " +