- // We need to any and all extension statements which have been declared in the context
- if (inProgressPhase == ModelProcessingPhase.FULL_DECLARATION) {
- // We maintain this map for createDeclaredChild(), which calls out to global context first,
- // hence there is no point in performing double lookups.
- final Builder<QName, StatementSupport<?, ?, ?>> b = ImmutableMap.builder();
- addSupports(b, getRoot().getAllFromLocalStorage(StatementDefinitionNamespace.class));
- for (NamespaceStorageNode namespace : importedNamespaces) {
- addSupports(b, namespace.getAllFromLocalStorage(StatementDefinitionNamespace.class));
- }
+ // No further actions needed
+ if (inProgressPhase != ModelProcessingPhase.FULL_DECLARATION) {
+ return qNameToStmtDefMap;
+ }