WMSServiceExtension ext;
public void start(BundleContext context) throws Exception {
//get the catalog service and register the service extension
ext = new WMSServiceExtension();
ServiceReference ref =
context.getServiceReference(ServiceFactory.class.getName());
SkunkServiceFactory factory = (SkunkServiceFactory) context.getService(ref);
factory.addServiceExtension(ext);