/** * This method initializes the node. * * @throws Exception Failed to initialize the node */ protected void init() throws Exception { if (getPredicate() != null) { getPredicate().init(); } if (getEventProcessor() == null) { throw new Exception("Event Processor has not been configured for node"); } getEventProcessor().init(); if (getEventProcessor().getAsynchronous()) { _handler = new NodeResultHandler(); getEventProcessor().setResultHandler(_handler); } }