LOG.debug(String.format("%s received %s", this.getSelf(), message
.getClass().getSimpleName()));
// process message and reply with a commit message to the underlying node event
if (message instanceof ActivationMessage) {
new NodeUtils().replyCommitMessage(activate((ActivationMessage) message), getSelf(), getSender());
} else if (message instanceof DeactivationMessage) {
new NodeUtils().replyCommitMessage(deactivate((DeactivationMessage) message), getSelf(), getSender());
} else if (message instanceof TriggerMessage) {
new NodeUtils().replyCommitMessage(trigger((TriggerMessage) message), getSelf(), getSender());
} else {
unhandled(message);
}
}