tEnv.addObjRelation("XDocumentHandler.XMLData", xml) ;
tEnv.addObjRelation("TargetDocument",xTextDoc);
log.println("Implementation Name: "+util.utils.getImplName(oObj));
final XTextDocument textDoc = (XTextDocument) UnoRuntime.queryInterface
(XTextDocument.class, xTextDoc) ;
final PrintWriter fLog = log ;
tEnv.addObjRelation("XDocumentHandler.ImportChecker",
new ifc.xml.sax._XDocumentHandler.ImportChecker() {
public boolean checkImport() {
String docText = textDoc.getText().getString() ;
fLog.println("Document text returned = '" + docText + "'") ;
return impText.equals(docText) ;
}
}) ;