public void start(final BundleContext context) throws Exception {
SafeRunner.run(new ExtensionRegistryRunnable(context) {
@Override
protected void runWithoutRegistry() throws Exception {
context.registerService(Namespace.class, new TimeServiceRestNamespace(), null);
}
});
}