if (dataObject.getProducts().size() > 0) {
//this category still got dependency with product
throw new AppException("Products exist. Cannot delete this Category.\nPlease remove all product first.", "[AppController::removeCategory]", null);
}
}
success = dataObjectManager.deleteCategory(id);
if (success) {
categoryDataSet.remove(id);
//Remove vendors file
File f = null;