private void setPipelineReferences(final ElementRegistry pipelineElementRegistry,
                                       final String id,
                                       final String elementType,
                                       final Object elementInstance,
                                       final PipelineData pipelineData) {
        // Set the properties on this instance.
        for (final PipelineReference pipelineReference : pipelineData.getPipelineReferences().getAdd()) {
            if (pipelineReference.getElement().equals(id)) {
                setPipelineReference(pipelineElementRegistry, elementType, elementInstance, pipelineReference.getName(),
                        pipelineReference);
            }
        }
    }
Set the pipeline references on the newly created element instance.
stroom-pipeline/src/main/java/stroom/pipeline/factory/PipelineFactory.java