this.overlapSpec = overlapSpec;
this.contextStateService = contextStateService;
StatementAIResourceRegistryFactory resourceRegistryFactory = new StatementAIResourceRegistryFactory() {
public StatementAIResourceRegistry make() {
return new StatementAIResourceRegistry(new AIRegistryAggregationMultiPerm(), new AIRegistryExprMultiPerm());
}
};
EventType eventTypeContextProps = ContextPropertyEventType.getTemporalOverlapType(contextName, overlapSpec, servicesContext.getEventAdapterService());
ContextPropertyRegistry contextProperties = new ContextPropertyRegistryImpl(eventTypeContextProps);
contextDescriptor = new ContextDescriptor(contextName, false, contextProperties, resourceRegistryFactory, this);