category = documentCategoryService.getEntityById(
DocumentCategory.class, categoryID);
}
document.setCategory(category);
DocumentSubCategory subCategory = null;
if (subCategoryID != null) {
subCategory = documentSubCategoryService.getEntityById(
DocumentSubCategory.class, subCategoryID);
}
document.setSub_category(subCategory);