public StatementContextBase build() throws SourceException {
StatementContextBase<?, ?, ?> potential = null;
- if (getDefinition().getPublicView() != Rfc6020Mapping.AUGMENT) {
+ StatementDefinition stmtDef = getDefinition().getPublicView();
+ if (stmtDef != Rfc6020Mapping.AUGMENT && stmtDef != Rfc6020Mapping.DEVIATION) {
potential = substatements.get(createIdentifier());
}
if (potential == null) {