// Get the dissectable document.
DissectableDocument document = details.getDocument();
// Create a dissected document.
DissectionContext context = new MyDissectionContext();
DissectionCharacteristicsImpl characteristics
= new DissectionCharacteristicsImpl();
// HACK to force dissection without relying on hints in the input
if (expectedDocumentStats.pageSize > 0) {
characteristics.setMaxPageSize(expectedDocumentStats.pageSize);