BundleContext systemContext = osgi.getBundleContext();
// Activate the watcher bundle.
watcherActivator = new Activator();
try {
watcherActivator.start(systemContext);
} catch (Exception e) {
IllegalStateException exception = new IllegalStateException(
"Could not start watcher");