if (dispatches.size() == 1) {
handle.setOptionalDispatchable(dispatches.getFirst());
}
else {
final EPStatementDispatch[] dispatchArray = dispatches.toArray(new EPStatementDispatch[dispatches.size()]);
handle.setOptionalDispatchable(new EPStatementDispatch() {
public void execute(ExprEvaluatorContext exprEvaluatorContext) {
for (EPStatementDispatch dispatch : dispatchArray) {
dispatch.execute(exprEvaluatorContext);
}
}