- EffectiveStatement<?,?> rootEffective = source.getRoot().buildEffective();
- rootEffectiveStatements.add(rootEffective);
+ try {
+ for (SourceSpecificContext source : sources) {
+ final RootStatementContext<?, ?, ?> root = source.getRoot();
+ rootStatements.add(root.buildDeclared());
+ rootEffectiveStatements.add(root.buildEffective());
+ }
+ } finally {
+ RecursiveObjectLeaker.cleanup();