// Shutdown the ApplicationLauncher service if it is available.
ServiceReference launcherRef = context.getServiceReference(ApplicationLauncher.class.getName());
if (launcherRef != null) {
ApplicationLauncher launcher = (ApplicationLauncher) context.getService(launcherRef);
// this will force a currently running application to stop.
launcher.shutdown();
context.ungetService(launcherRef);
}
}
public void addProperties(Properties properties) {