EDI Templates

When I create a transaction set template (in this case the x12 210), If the transaction contains an N9 segment in the Header and then again in Detail inside the LX loop, would I expect to see both header and detail N9 segments in the template? When I run wm.b2b.edi.templateMgr:getTemplate, the
template in the pipeline does not contain a N9 segment following the LX segment, it only shows it in the header section. I have a problem with a MAP function not working properly for a subsequent segment (L1), and I wonder if it might be because webMethods thinks the N9, (which is coming in the LX loop) starts another header section. Any help?