public synchronized void changeSchema(final SchemaContext newContext) {
schemaContext = newContext;
- for (ListenerRegistration<SchemaContextListener> listener : listeners) {
+ for (ListenerRegistration<? extends SchemaContextListener> listener : listeners.getRegistrations()) {
listener.getInstance().onGlobalContextUpdated(schemaContext);
}
}