	public boolean isCategoryNameValidForCategory(Long categoryId,
			String categoryName) {
		Category category = repo.findByCategoryName(categoryName);
		if (category == null)
			return true;
		if (category.getCategoryId() != categoryId)
			return false;
		return true;
	}

	public boolean isCategoryNameValidForCategory(Long categoryId,
			String categoryName) {
		Category category = repo.findByCategoryName(categoryName);
		if (category == null)
			return true;
		if (category.getCategoryId().equals(categoryId))
			return true;
		return false;
	}
