private void adjustBookType() { // The book type represents the underlying category of book. // Fine tune it here. BookCategory focusedCategory = (BookCategory) getValue(KEY_CATEGORY); questionable = focusedCategory == BookCategory.QUESTIONABLE; String modTypeName = getProperty(KEY_MOD_DRV); if (modTypeName == null) { LOGGER.error("Book not supported: malformed conf file for [{}] no {} found.", configAll.getName(), KEY_MOD_DRV); supported = false; return; } String v11n = getProperty(KEY_VERSIFICATION); if (!Versifications.instance().isDefined(v11n)) { LOGGER.error("Book not supported: Unknown versification for [{}]{}={}.", configAll.getName(), KEY_VERSIFICATION, v11n); supported = false; return; } bookType = BookType.fromString(modTypeName); if (bookType == null) { LOGGER.error("Book not supported: malformed conf file for [{}] no book type found", configAll.getName()); supported = false; return; } // The book type represents the underlying category of book. // Fine tune it here. if (focusedCategory == BookCategory.OTHER) { focusedCategory = bookType.getBookCategory(); } setProperty(KEY_CATEGORY, focusedCategory.getName()); }