wordMLPackage.getMainDocumentPart().addTargetPart(ndp);
<BUG>ndp.unmarshalDefaultNumbering();
if (inputfilepath.endsWith("html")) {</BUG>
wordMLPackage.getMainDocumentPart().getContent().addAll(
<BUG>XHTMLImporter.convert(new File(inputfilepath), null, wordMLPackage) );
</BUG>
} else if (inputfilepath.endsWith("docx")) {
WordprocessingMLPackage docx = WordprocessingMLPackage.load( new File(inputfilepath));
AbstractHtmlExporter exporter = new HtmlExporterNG2();
OutputStream os = new java.io.FileOutputStream(inputfilepath + ".html");

wordMLPackage.getMainDocumentPart().addTargetPart(ndp);
ndp.unmarshalDefaultNumbering();
XHTMLImporterImpl xHTMLImporter = new XHTMLImporterImpl(wordMLPackage);
xHTMLImporter.setHyperlinkStyle("Hyperlink");
if (inputfilepath.endsWith("html")) {
wordMLPackage.getMainDocumentPart().getContent().addAll(
xHTMLImporter.convert(new File(inputfilepath), null) );
} else if (inputfilepath.endsWith("docx")) {
WordprocessingMLPackage docx = WordprocessingMLPackage.load( new File(inputfilepath));
AbstractHtmlExporter exporter = new HtmlExporterNG2();
OutputStream os = new java.io.FileOutputStream(inputfilepath + ".html");
