This function depends on osgi class - BundleContext and jaggr-core does not depend on osgi classes. So I removed this method from IAggregator so as to keep it platform independent. This method is not a part of any interface and its implementation is in AggregatorImpl in jaggr-service.