* use variables for _makeContainerNode etc. (like AgsLoader does) to avoid passing them around multiple times now that this module is more complex

* Move "GetCapabilities" comment where it makes sense
* Separate loadCatalogUsingResourceInfo() function