public void updateCategory(CategoryData categoryData) {
   Category category = categoryService.find(UUIDHelper.stringToUUID(categoryData.getUuid()));
   if (categoryData.getParentCategory() != null) {
     log.info("found parent category");
     category.setParentCategory(
         categoryService.find(
             UUIDHelper.stringToUUID(categoryData.getParentCategory().getUuid())));
   }
   categoryService.update(category);
 }