OMElement par = (OMElement) line.getParentNode();
OMNodeList<OMElement> oldText = par.getElementsByTagName("text");
if (oldText.getLength() > 0) {
par.removeChild(oldText.getItem(0));
}
par.appendChild(text);
}
/**
* Prepares a string representation of the PipelineInfo.
*