added support for publisher and aggregator in get folder APIs