the resource is also passed to the output to enable adding elements to the mastercatalog