setupDocument(element, document);
}
}
if (document != null) {
IDocumentPartitioner partitioner = new FastPartitioner(
new QVTPartitionScanner(),
new String[] { QVTPartitionScanner.MM_DECLARATION,QVTPartitionScanner.MM_COMMENT});
partitioner.connect(document);
document.setDocumentPartitioner(QVTDocument.QVT_PARTITIONING,partitioner);
}
return document;