class LatenessDormancyController {

    @RequestMapping(method = RequestMethod.POST)
    public String processFormSubmit(@RequestParam(value = CANCEL_PARAM, required = false) String cancel,
                                    @Valid @ModelAttribute("formBean") LatenessDormancyFormBean formBean,
                                    BindingResult result,
                                    SessionStatus status) {

        String viewName = REDIRECT_TO_ADMIN_SCREEN;

        if (StringUtils.isNotBlank(cancel)) {
            viewName = REDIRECT_TO_ADMIN_SCREEN;
            status.setComplete();
        } else if (result.hasErrors()) {
            viewName = "editLatenessDormancy";
        } else {
            ProductConfigurationDto productConfigurationDto = new ProductConfigurationDto(formBean.getLatenessDays(), formBean.getDormancyDays());
            this.adminServiceFacade.updateProductConfiguration(productConfigurationDto);
            status.setComplete();
        }

        return viewName;
    }

    protected  LatenessDormancyController();
    public  LatenessDormancyController(final AdminServiceFacade adminServiceFacade);

}