// skip on a very-first region situation as the default
// behavior is good enough
// combine with previous if also undefined
if (currentNode.getLastRegion() != null && currentNode.getLastRegion().getType() == DOMRegionContext.UNDEFINED) {
currentNode.getLastRegion().adjustLength(region.getLength());
currentNode.adjustLength(region.getLength());
//if adding this region to a previous container then need to add this
//region to the container and update its start location
if(currentNode.getLastRegion() instanceof ITextRegionContainer) {
region.adjustStart(-currentNode.getLastRegion().getStart() - currentNode.getStart());