// } catch (Docx4JException e) {
// log.error(e.getMessage(), e);
// throw e;
} catch (IllegalArgumentException e) {
if (e.getMessage().contains("Only non-null Positions with an index can be checked")) {
throw new Docx4JException("Exception exporting package; FOP https://issues.apache.org/bugzilla/show_bug.cgi?id=54094 .. try PP_APACHEFOP_DISABLE_PAGEBREAK_LIST_ITEM",e);
} else {
throw new Docx4JException("Exception exporting package", e);
}
} catch (Exception e) {
log.error("Exception exporting package", e);
throw new Docx4JException("Exception exporting package", e);
} finally {
// Clean-up
try {
outputStream.close();
} catch (IOException e) {