}
private void activateRule(final Rule rule) throws NodeKeeperException, IOException, InterruptedException {
//handle event
rule.setNodeListener(new NodeListener() {
private void execute(Node node) throws InterruptedException, IOException, NodeKeeperException {
HashMap<String,String> bindings = bindVariables(node);
if(checkConditions(bindings)) {
for(Action action : rule.actions) {