Implemented scope for EndToEndFlowSegment's context and flowElement
references.