+ @SuppressWarnings("checkstyle:IllegalCatch")
+ public AutoCloseable createInstance() {
+ // The services are provided via blueprint so retrieve then from the OSGi service registry for
+ // backwards compatibility.
+
+ final List<AutoCloseable> closeables = new ArrayList<>();
+ DOMNotificationService domNotificationService = newTracker(
+ DOMNotificationService.class, closeables).waitForService(WaitingServiceTracker.FIVE_MINUTES);
+
+ DOMNotificationPublishService domNotificationPublishService = newTracker(
+ DOMNotificationPublishService.class, closeables).waitForService(WaitingServiceTracker.FIVE_MINUTES);
+
+ DOMRpcService domRpcService = newTracker(
+ DOMRpcService.class, closeables).waitForService(WaitingServiceTracker.FIVE_MINUTES);
+
+ DOMRpcProviderService domRpcProvider = newTracker(
+ DOMRpcProviderService.class, closeables).waitForService(WaitingServiceTracker.FIVE_MINUTES);
+
+ DOMMountPointService mountService = newTracker(DOMMountPointService.class, closeables)
+ .waitForService(WaitingServiceTracker.FIVE_MINUTES);
+
+ SchemaService globalSchemaService = newTracker(SchemaService.class, closeables)
+ .waitForService(WaitingServiceTracker.FIVE_MINUTES);
+
+ final DOMDataBroker dataBroker = getAsyncDataBrokerDependency();