public EventBean[] execute(NamedWindowProcessorInstance instance) {
EventBean event = insertHelper.process(new EventBean[0], true, true, exprEvaluatorContext);
EventBean[] inserted = new EventBean[] {event};
AgentInstanceContext ctx = instance.getTailViewInstance().getAgentInstanceContext();
StatementAgentInstanceLock ailock = ctx.getAgentInstanceLock();
ailock.acquireWriteLock(null);
try {
instance.getRootViewInstance().update(inserted, null);
}
catch (EPException ex) {
instance.getRootViewInstance().update(null, inserted);