@Override
public void postWritingDestinationValue(DozerEvent event) {
if(event.getDestinationObject() instanceof BoCatalogPojo){
if(event.getFieldMap().getDestFieldName().equals("id")){
// INJECT BACKOFFICE URLS
BoCatalogPojo catalogPojo = (BoCatalogPojo) event.getDestinationObject();
try {
RequestData requestData = requestUtil.getRequestData(httpServletRequest);
if(event.getSourceObject() instanceof CatalogMaster){
catalogPojo.setAddRootCategoryUrl(backofficeUrlService.generateUrl(BoUrls.MASTER_CATEGORY_ADD, requestData));
} else if(event.getSourceObject() instanceof CatalogVirtual){
catalogPojo.setAddRootCategoryUrl(backofficeUrlService.generateUrl(BoUrls.VIRTUAL_CATEGORY_ADD, requestData));
}
} catch (Exception e) {
logger.error("postWritingDestinationValue error with BoCatalogPojo", e);
}