- public final NotificationStatement createDeclared(final StmtContext<QName, NotificationStatement, ?> ctx) {
- return new NotificationStatementImpl(ctx);
+ protected final NotificationEffectiveStatement createEffective(final Current<QName, NotificationStatement> stmt,
+ final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
+ checkEffective(stmt);
+
+ try {
+ return new NotificationEffectiveStatementImpl(stmt.declared(), substatements,
+ historyAndStatusFlags(stmt.history(), substatements), stmt.wrapSchemaPath());
+ } catch (SubstatementIndexingException e) {
+ throw new SourceException(e.getMessage(), stmt, e);
+ }