Would be slightly cleaner (as there a few uses) to add a : 
IPropertyTree &eclAgent = eclAgents.query();