ContextStateService contextStateService = new ContextStateServiceNull();
ContextManagementService contextManagementService = new ContextManagementServiceImpl(contextStateService);
SchedulableAgentInstanceDirectory schedulableAgentInstanceDirectory = null; // not required for Non-HA.
PatternSubexpressionPoolEngineSvc patternSubexpressionPoolSvc = null;
if (configSnapshot.getEngineDefaults().getPatterns().getMaxSubexpressions() != null) {
patternSubexpressionPoolSvc = new PatternSubexpressionPoolEngineSvc(configSnapshot.getEngineDefaults().getPatterns().getMaxSubexpressions(),
configSnapshot.getEngineDefaults().getPatterns().isMaxSubexpressionPreventStart());
}
// New services context
EPServicesContext services = new EPServicesContext(epServiceProvider.getURI(), epServiceProvider.getURI(), schedulingService,