+ /** Launch an OSGi framework. */\r
+ public static Framework launch(FrameworkFactory frameworkFactory, Map<String, String> configuration) {\r
+ // start OSGi\r
+ Framework framework = frameworkFactory.newFramework(configuration);\r
+ try {\r
+ framework.start();\r
+ } catch (BundleException e) {\r
+ throw new OsgiBootException("Cannot start OSGi framework", e);\r
+ }\r
+ return framework;\r
+ }\r
+\r