{
final StreamSpecCompiled streamSpec = statementSpec.getStreamSpecs().get(i);
NamedWindowConsumerStreamSpec namedSpec = (NamedWindowConsumerStreamSpec) streamSpec;
NamedWindowProcessorInstance processorInstance = processors[i].getProcessorInstance(agentInstanceContext);
if (processorInstance == null) {
throw new EPException("Named window '" + namedSpec.getWindowName() + "' is associated to context '" + processors[i].getContextName() + "' that is not available for querying");
}
snapshots[i] = processorInstance.getTailViewInstance().snapshot(filters[i], statementSpec.getAnnotations());
if (namedSpec.getFilterExpressions().size() != 0)
{