Source:
<code>public ResponseEntity setServerSettings(@RequestBody ServerSettingsForm serverSettingsForm, BindingResult bindingResult, @RequestHeader(HttpHeaders.ACCEPT) String acceptHeader) throws IOException { if (serverSettingsForm == null) { return getBadRequestResponseEntity(FAILED_EMPTY_FORM, acceptHeader); } validateServerSettingsForm(serverSettingsForm, bindingResult); if (bindingResult.hasErrors()) { throw new RequestBodyValidationException(FAILED_SAVE_SERVER_SETTINGS, bindingResult); } configurationManagementService.setBaseUrl(serverSettingsForm.getBaseUrl()); configurationManagementService.setPort(serverSettingsForm.getPort()); configurationManagementService.setInstanceName(serverSettingsForm.getInstanceName()); <START> if(serverSettingsForm.getMaxFileUploadSizeString() != null){ String maxFileUploadSize = serverSettingsForm.getMaxFileUploadSizeString(); boolean wasAbleToSet = configurationManagementService.setMaxUploadFileSize(maxFileUploadSize); } <END> if (serverSettingsForm.getCorsConfigurationForm() != null) { configurationManagementService.setCorsAllowedOrigins( serverSettingsForm.getCorsConfigurationForm().getAllowedOrigins() ); } if (serverSettingsForm.getSmtpConfigurationForm() != null) { configurationManagementService.setSmtpSettings( serverSettingsForm.getSmtpConfigurationForm().getMutableSmtpConfiguration() ); } if (serverSettingsForm.getProxyConfigurationForm() != null) { configurationManagementService.setProxyConfiguration( null, null, serverSettingsForm.getProxyConfigurationForm().getMutableProxyConfiguration() ); } return getSuccessfulResponseEntity(SUCCESSFUL_SAVE_SERVER_SETTINGS, acceptHeader); }</code><technical_language>Cosmetic: Code style... suggestion if (serverSettingsForm.getMaxFileUploadSizeString() != null) { String maxFileUploadSize = serverSettingsForm.getMaxFileUploadSizeString(); boolean wasAbleToSet = configurationManagementService.setMaxUploadFileSize(maxFileUploadSize); }</technical_language>

Target:
public ResponseEntity setServerSettings(@RequestBody ServerSettingsForm serverSettingsForm, BindingResult bindingResult, @RequestHeader(HttpHeaders.ACCEPT) String acceptHeader) throws IOException { if (serverSettingsForm == null) { return getBadRequestResponseEntity(FAILED_EMPTY_FORM, acceptHeader); } validateServerSettingsForm(serverSettingsForm, bindingResult); if (bindingResult.hasErrors()) { throw new RequestBodyValidationException(FAILED_SAVE_SERVER_SETTINGS, bindingResult); } configurationManagementService.setBaseUrl(serverSettingsForm.getBaseUrl()); configurationManagementService.setPort(serverSettingsForm.getPort()); configurationManagementService.setInstanceName(serverSettingsForm.getInstanceName()); if (serverSettingsForm.getMaxUploadSize() != null) { String maxFileUploadSize = serverSettingsForm.getMaxUploadSize(); configurationManagementService.setMaxUploadFileSize(maxFileUploadSize); } if (serverSettingsForm.getCorsConfigurationForm() != null) { configurationManagementService.setCorsAllowedOrigins( serverSettingsForm.getCorsConfigurationForm().getAllowedOrigins() ); } if (serverSettingsForm.getSmtpConfigurationForm() != null) { configurationManagementService.setSmtpSettings( serverSettingsForm.getSmtpConfigurationForm().getMutableSmtpConfiguration() ); } if (serverSettingsForm.getProxyConfigurationForm() != null) { configurationManagementService.setProxyConfiguration( null, null, serverSettingsForm.getProxyConfigurationForm().getMutableProxyConfiguration() ); } return getSuccessfulResponseEntity(SUCCESSFUL_SAVE_SERVER_SETTINGS, acceptHeader); }