super.connect(element);
IDocument document = getDocument(element);
if (document != null) {
if (document.getDocumentPartitioner() == null) {
IDocumentPartitioner partitioner = new FastPartitioner(
new FramePartitionScanner(),
FramePartitions.LEGAL_CONTENT_TYPES);
partitioner.connect(document);
document.setDocumentPartitioner(partitioner);
}
}