* substitutions
*/
if (boundaries.size() != 0)
{
/* Sort based on the start of the boundaries */
Collections.sort(boundaries, new EntitySubstitutionBoundaryDataBoundaryStartSort());
/* get the text content of the text node */
final String originalText = node.getTextContent();
/* the parent of this node holds only this text node. */