code: function processURLSegments(parentNode, segments) {
  		segments.forEach(function(segment) {
  			if (segment.urlStr){
  				var link = document.createElement("a"); //$NON-NLS-0$
  		        link.href = segment.urlStr;
  		        link.appendChild(document.createTextNode(segment.segmentStr));
  		        link.dir = bidiUtils.getTextDirection(segment.segmentStr);
  				parentNode.appendChild(link);
  			} else {
  				var plainText = document.createElement("span"); //$NON-NLS-0$
  				plainText.textContent = segment.segmentStr;
  				plainText.dir = bidiUtils.getTextDirection(segment.segmentStr);
  				parentNode.appendChild(plainText);
  			}
  		});
  	}
docs: Render an array of string segments.
  @param {dom node} parentNode The given parent dom node where the segments will be rendered.
  @param {orion.urlUtils.Segment[]} segments The given array containing all the segments.