boolean success = true;
for (String page : pages) {
if (page == null) {
continue;
}
StringTag toAdd = PAGE_TITLE_AUTHOR.copy();
toAdd.setName("page" + PAGES_TAG.size());
toAdd.setValue(correctPage(page));
success &= pages_to_set.add(toAdd);
}
book.getDataTag().put("pages", pages_to_set);
return success;
}