WBDOMDissectableDocument dissectionDocument = (WBDOMDissectableDocument)
details.getDocument();
Dissector dissector = new Dissector();
DissectionContext context = new MyDissectionContext();
DissectionCharacteristicsImpl characteristics =
new DissectionCharacteristicsImpl();
DissectionURLManager urlManager = new MyDissectionURLManager();
DocumentInformationImpl information = new DocumentInformationImpl();
information.setDocumentURL(new MarinerURL("document-url.xml"));
System.out.println("Page Size=" + pageSize);
characteristics.setMaxPageSize(pageSize);
DissectedDocument dissectedDocument =
dissector.createDissectedDocument(context, characteristics,
dissectionDocument, urlManager, information);
// Interate over the shards.