Source:
public String showInfo( @PathVariable("id") Integer seriesId, Model model, @CurrentUser Integer currentUserId, Locale userLocale, HttpServletResponse response) throws IOException { if (seriesId == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); return null; } String lang = LocaleUtils.getLanguageOrNull(userLocale); SeriesDto series = seriesService.findFullInfoById(seriesId, lang); if (series == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); return null; } model.addAttribute("addImageForm", new AddImageForm()); model.addAttribute("series", series); model.addAttribute("michelNumbers", CatalogUtils.toShortForm(series.getMichel().getNumbers())); model.addAttribute("scottNumbers", CatalogUtils.toShortForm(series.getScott().getNumbers())); model.addAttribute("yvertNumbers", CatalogUtils.toShortForm(series.getYvert().getNumbers())); model.addAttribute("gibbonsNumbers", CatalogUtils.toShortForm(series.getGibbons().getNumbers())); model.addAttribute( "isSeriesInCollection", currentUserId == null ? false : collectionService.isSeriesInCollection(currentUserId, series.getId()) ); model.addAttribute( "allowAddingImages", isUserCanAddImagesToSeries(series) ); model.addAttribute("maxQuantityOfImagesExceeded", false); List<PurchaseAndSaleDto> purchasesAndSales = seriesService.findPurchasesAndSales(series.getId()); model.addAttribute("purchasesAndSalesList", purchasesAndSales); return "series/info"; }

Target:
public String showInfo( @PathVariable("id") Integer seriesId, Model model, @CurrentUser Integer currentUserId, Locale userLocale, HttpServletResponse response) throws IOException { if (seriesId == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); return null; } String lang = LocaleUtils.getLanguageOrNull(userLocale); SeriesDto series = seriesService.findFullInfoById(seriesId, lang); if (series == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); return null; } String michelNumbers = CatalogUtils.toShortForm(series.getMichel().getNumbers()); String scottNumbers = CatalogUtils.toShortForm(series.getScott().getNumbers()); String yvertNumbers = CatalogUtils.toShortForm(series.getYvert().getNumbers()); String gibbonsNumbers = CatalogUtils.toShortForm(series.getGibbons().getNumbers()); boolean isSeriesInCollection = collectionService.isSeriesInCollection(currentUserId, series.getId()); boolean userCanAddImagesToSeries = isUserCanAddImagesToSeries(series); AddImageForm form = new AddImageForm(); model.addAttribute("series", series); model.addAttribute("addImageForm", form); model.addAttribute("michelNumbers", michelNumbers); model.addAttribute("scottNumbers", scottNumbers); model.addAttribute("yvertNumbers", yvertNumbers); model.addAttribute("gibbonsNumbers", gibbonsNumbers); model.addAttribute("isSeriesInCollection", isSeriesInCollection); model.addAttribute("allowAddingImages", userCanAddImagesToSeries); model.addAttribute("maxQuantityOfImagesExceeded", false); if (SecurityContextUtils.hasAuthority(Authority.VIEW_SERIES_SALES)) { List<PurchaseAndSaleDto> purchasesAndSales = seriesService.findPurchasesAndSales(series.getId()); model.addAttribute("purchasesAndSales", purchasesAndSales); } return "series/info"; }