public static final QName CATEGORIES = new QName(NS, "categories");
public static final QName VERSION_NUMBER = new QName(NS, "versionNumber");
public static final QName CHECKIN_COMMENT = new QName(NS, "checkinComment");
public static Category toCategory(CategoryItem categoryItem, UriInfo uriInfo) {
Category category = new Category();
category.setPath(categoryItem.getFullPath());
category.setRefLink(uriInfo.getBaseUriBuilder()
.path("/categories/{categoryPath}")
.build(categoryItem.getFullPath()));
return category;
}