ArrayList executionScopes = instance.getExecutionScopeContexts();
if (executionScopes!=null) {
HashMap executionScopesHT = new HashMap();
for(int i=0; i<executionScopes.size(); i++){
ExecutionScopeContext esc = (ExecutionScopeContext)executionScopes.get(i);
List executionScopeListIndexedByTriggerActivityTracingTag;
if(executionScopesHT.containsKey(esc.getTriggerActivityTracingTag())){
executionScopeListIndexedByTriggerActivityTracingTag = (List)executionScopesHT.get(esc.getTriggerActivityTracingTag());
} else {
executionScopeListIndexedByTriggerActivityTracingTag = new ArrayList();
executionScopesHT.put(
esc.getTriggerActivityTracingTag(),
executionScopeListIndexedByTriggerActivityTracingTag
);
}
executionScopeListIndexedByTriggerActivityTracingTag.add(esc);