private NodeDao m_nodeDao;
@Autowired
private CategoryDao m_categoryDao;
@GET
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
<BUG>public OnmsCategoryCollection getCategories(@PathParam("nodeId") int nodeId) {

OnmsNode node = m_nodeDao.get(nodeId);

if (node == null)

throwException(Status.BAD_REQUEST, "getCategories: Can't find node with id " + nodeId);

return new OnmsCategoryCollection(node.getCategories());</BUG>
}

private NodeDao m_nodeDao;
@Autowired
private CategoryDao m_categoryDao;
