private void runCommonStages ( boolean pedantic , Document document ) { if ( ! stage2 ( document ) ) { if ( pedantic ) { bail ( NAMESPACE_RESOLUTION_FAILURE ) ; } } if ( ! stage3 ( document ) ) { if ( pedantic ) { bail ( SYMBOL_VERIFICATION_FAILURE ) ; } } if ( ! stage4 ( document ) ) { if ( pedantic ) { bail ( SEMANTIC_VERIFICATION_FAILURE ) ; } } ProtoNetwork pn = stage5 ( document ) ; if ( ! stage6 ( document , pn ) ) { if ( pedantic ) { bail ( STATEMENT_EXPANSION_FAILURE ) ; } } if ( ! stage7 ( pn , document ) ) { if ( pedantic ) { bail ( PROTO_NETWORK_SAVE_FAILURE ) ; } } }
Runs stages 2 - 7 which remain static regardless of the BEL document input .