-public class CurrentSchemaContext implements SchemaContextListener, AutoCloseable {
- private final AtomicReference<SchemaContext> currentContext = new AtomicReference();
- private final ListenerRegistration<SchemaContextListener> schemaContextListenerListenerRegistration;
- private final Set<CapabilityListener> listeners1 = Collections.synchronizedSet(Sets.newHashSet());
+public class CurrentSchemaContext implements EffectiveModelContextListener, AutoCloseable {
+ private final AtomicReference<EffectiveModelContext> currentContext = new AtomicReference<>();
+ private final ListenerRegistration<?> schemaContextListenerListenerRegistration;
+ private final Set<CapabilityListener> listeners1 = Collections.synchronizedSet(new HashSet<>());