protected void activate(ComponentContext ctxt) {
//System.out.println("TestAlgorithm 4 beginning activation");
//You may delete all references to metatype service if
//your algorithm does not require parameters and return
//null in the createParameters() method
MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS");
this.log = (LogService) ctxt.locateService("LOG");
this.ca = (ConfigurationAdmin) ctxt.locateService("CA");
provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle());
this.pid = (String) ctxt.getProperties().get("service.pid");
// System.out.println("TestAlgorithm 4 done activating");
}