recoveryResources = new StatementResourceHolder(lock,new Viewable[] {createResult.getTopView()}, null,
null, null, null, createResult.getPostLoad());
}
if (startResult instanceof StatementAgentInstanceFactoryOnTriggerResult) {
StatementAgentInstanceFactoryOnTriggerResult onTriggerResult = (StatementAgentInstanceFactoryOnTriggerResult) startResult;
recoveryResources = new StatementResourceHolder(lock, null, null,
new EvalRootState[] {onTriggerResult.getOptPatternRoot()},
onTriggerResult.getOptionalAggegationService(), onTriggerResult.getSubselectStrategies(), null);
}
if (recoveryResources != null) {
this.addRecoveryResources(agentInstanceId, recoveryResources);
}