if (query.valueString(7) != null && !query.valueString(7).trim().equals(""))
tempNotebook.setStack(query.valueString(7));
if (tempNotebook.isPublished()) {
Publishing p = new Publishing();
p.setUri(query.valueString(8));
p.setAscending(query.valueBoolean(9, false));
p.setPublicDescription(query.valueString(10));
p.setOrder(NoteSortOrder.findByValue(query.valueInteger(11)));
tempNotebook.setPublishing(p);
}