//validate whethere the same category exist inside the system
Category dataObject = selectCategory(category.getCategoryCode());
if (dataObject != null) {
success = false;
throw new AppException("The same Category Code has found on the system", "[Category::addCategory]", null);
}
try {
categoryDA = new CategoryDA(filename, format);
categoryDA.writeData(category, true);