Condition conditions = new Condition();
conditions.put(SessionEventMatcher.EVENTTYPE_KEY, ExtendedEvent.NODE_ADDED);
conditions.put(SessionEventMatcher.PATH_KEY, node.getInternalPath());
conditions.put(SessionEventMatcher.NODETYPES_KEY, readNodeTypeNames((NodeData)node.getData()));
InvocationContext ctx = new InvocationContext();
ctx.put(InvocationContext.CURRENT_ITEM, node);
ctx.put(InvocationContext.EXO_CONTAINER, container);
ctx.put(InvocationContext.EVENT, ExtendedEvent.NODE_ADDED);
launch(conditions, ctx);
}
finally
{
activeItem = null;