} else if (contentType.equals(ContentTypes.SPREADSHEETML_WORKBOOK)
|| contentType.equals(ContentTypes.SPREADSHEETML_WORKBOOK_MACROENABLED)
|| contentType.equals(ContentTypes.SPREADSHEETML_TEMPLATE)
|| contentType.equals(ContentTypes.SPREADSHEETML_TEMPLATE_MACROENABLED)) {
try {
return new WorkbookPart(new PartName(partName));
} catch (Exception e) {
return new BinaryPart( new PartName(partName));
}
} else if (contentType.startsWith("application/vnd.openxmlformats-officedocument.spreadsheetml")) {