public Bookstore bookModelToJaxb(List<Map<String, Object>> books) {
final Bookstore bookstore = new Bookstore();
final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy");
for (Map<String, Object> bookEntry : books) {
final Book book = new Book();
final Book.Title title = new Book.Title();
final BookModel bookModel = (BookModel) bookEntry.get(BookModel.class.getCanonicalName());
now
public Bookstore bookModelToJaxb(List<BookModel> books) {
final Bookstore bookstore = new Bookstore();
final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy");
for (BookModel bookModel : books) {
final Book book = new Book();
final Book.Title title = new Book.Title();
Method signature simplified. Affected code block, was:
now
Update whole class in example.