+ private final BindingRuntimeGenerator generator;
+
+ public YangModuleLibrarySupportFactory() {
+ this(ServiceLoader.load(BindingRuntimeGenerator.class).findFirst()
+ .orElseThrow(() -> new IllegalStateException("Failed to find a BindingRuntimeGenerator service")));
+ }
+
+ public YangModuleLibrarySupportFactory(final BindingRuntimeGenerator generator) {
+ this.generator = requireNonNull(generator);
+ }
+