public void run() throws Exception {
FrameworkFactory factory = (FrameworkFactory) Class.forName("org.apache.felix.framework.FrameworkFactory").newInstance();
List activators = new ArrayList();
activators.add(new Activator());
Map frameworkProperties = new HashMap();
frameworkProperties.put("felix.systembundle.activators", activators);
frameworkProperties.put(Constants.FRAMEWORK_SYSTEMPACKAGES_EXTRA, "org.osgi.service.deploymentadmin;version=\"1.0\","
+ "org.osgi.service.deploymentadmin.spi;version=\"1.0\","
+ "org.osgi.service.cm;version=\"1.3\","