private Book createBookForFile(ZLFile file) { if (file == null) { return null; } Book book = Book.getByFile(file); if (book != null) { book.insertIntoBookList(); return book; } if (file.isArchive()) { for (ZLFile child : file.children()) { book = Book.getByFile(child); if (book != null) { book.insertIntoBookList(); return book; } } } return null; }