log().debug("addCategory: Saving category " + category);
m_categoryDao.save(category);
} else {
category = found;
}
<BUG>log().debug("addCategory: Adding category " + category + " to node " + nodeId);
</BUG>
node.addCategory(category);
m_nodeDao.save(node);
return Response.ok().build();

log().debug("addCategory: Saving category " + category);
m_categoryDao.save(category);
} else {
category = found;
}
log().debug("addCategory: Adding category " + category + " to node " + nodeCriteria);
node.addCategory(category);
m_nodeDao.save(node);
return Response.ok().build();
