for ( SubdocumentType previos : SubdocumentType.ORDERED )
{
int length = getFileInformationBlock()
.getSubdocumentTextStreamLength( previos );
if ( subdocument == previos )
return new Range( startCp, startCp + length, this );
startCp += length;
}
throw new UnsupportedOperationException(
"Subdocument type not supported: " + subdocument );
}