+ public void updateService() {
+ if(osgiReg != null) {
+ try {
+ bindingContextProvider.update(classLoadingStrat, schemaContextProvider);
+
+ final Dictionary<String, Object> props = new Hashtable<>();
+ props.put(BindingRuntimeContext.class.getName(), bindingContextProvider.getBindingContext());
+ props.put(SchemaSourceProvider.class.getName(), sourceProvider);
+ // send modifiedService event
+ osgiReg.setProperties(props);
+ } catch (RuntimeException e) {
+ // The ModuleInfoBackedContext throws a RuntimeException if it can't create the schema context.
+ LOG.warn("Error updating the BindingContextProvider", e);
+ }
+ }