/**
*
*/
@ModelAttribute(ModelConstants.TRACKING_VIEW_BEAN)
protected TrackingViewBean initTracking(final HttpServletRequest request, final Model model) throws Exception {
TrackingViewBean trackingViewBean = null;
final String contextValue = requestUtil.getCurrentContextNameValue(request);
EngineSetting webTrackingNumberEngineSetting = engineSettingService.getSettingWebTrackingNumber();
EngineSettingValue webTrackingNumberEngineSettingValue = webTrackingNumberEngineSetting.getEngineSettingValue(contextValue);
if(webTrackingNumberEngineSettingValue != null
&& StringUtils.isNotEmpty(webTrackingNumberEngineSettingValue.getValue())){
trackingViewBean = new TrackingViewBean();
trackingViewBean.setTrackingNumber(webTrackingNumberEngineSettingValue.getValue());
EngineSetting webTrackingNameEngineSetting = engineSettingService.getSettingWebTrackingName();
EngineSettingValue webTrackingNameEngineSettingValue = webTrackingNameEngineSetting.getEngineSettingValue(contextValue);
if(webTrackingNameEngineSettingValue != null){
trackingViewBean.setTrackingName(webTrackingNameEngineSettingValue.getValue());
}
}
return trackingViewBean;
}