if (filterAddendum != null) {
addendum = filterAddendum.getFilterAddendum(endpointFilterSpec.getFilterSpecCompiled());
}
filterHandle = new EPStatementHandleCallback(agentInstanceContext.getEpStatementAgentInstanceHandle(), filterCallback);
FilterValueSet filterValueSet = endpointFilterSpec.getFilterSpecCompiled().getValueSet(null, null, addendum);
servicesContext.getFilterService().add(filterValueSet, filterHandle);
if (optionalTriggeringEvent != null) {
boolean match = StatementAgentInstanceUtil.evaluateFilterForStatement(servicesContext, optionalTriggeringEvent, agentInstanceContext, filterHandle);