else {
stmtMetadataFactory = (StatementMetadataFactory) JavaClassHelper.instantiate(StatementMetadataFactory.class, configSnapshot.getEngineDefaults().getAlternativeContext().getStatementMetadataFactory());
}
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) {