/** * Gets the book-type information ("xls" or "xlsx"), return null if not found * * @param book * @return */ public static String getBookType(SBook book) { return (String) book.getAttribute(BOOK_TYPE_KEY); }