* @param builtPaths a set of the paths that have already been created but not submitted in this batch
*/
private void buildPathTo( Path targetPath,
SequencerContext context,
Set<Path> builtPaths ) {
PathFactory pathFactory = context.getExecutionContext().getValueFactories().getPathFactory();
PropertyFactory propFactory = context.getExecutionContext().getPropertyFactory();
if (targetPath.isRoot()) return;
Path workingPath = pathFactory.createRootPath();
Path.Segment[] segments = targetPath.getSegmentsArray();
int i = 0;
Property primaryType = propFactory.create(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.UNSTRUCTURED);
for (int max = segments.length; i < max; i++) {
workingPath = pathFactory.create(workingPath, segments[i]);
if (!builtPaths.contains(workingPath)) {
try {
context.graph().getNodeAt(workingPath);
} catch (PathNotFoundException pnfe) {