if (statementSpecRaw.getScriptExpressions() != null && !statementSpecRaw.getScriptExpressions().isEmpty()) {
defaultAgentInstanceScriptContext = new AgentInstanceScriptContext();
}
// allow a special context controller factory for testing
ContextControllerFactoryService contextControllerFactoryService = getContextControllerFactoryService(annotations);
// may use resource tracking
StatementExtensionSvcContext extensionSvcContext = new StatementExtensionSvcContext() {
private StatementResourceService statementResourceService = new StatementResourceService();
public StatementResourceService getStmtResources() {