// TODO: need to carry this single instance idea further to be
// complete,
// but hopefully this will be less garbage than before (especially for
// HTML, XML,
// naturally!)
IStructuredTypedRegion region = getEmbeddedPartitioner().createPartition(offset, length, type);
super.setInternalPartition(region.getOffset(), region.getLength(), region.getType());
}