Source:
public void updateTriggerConfigURL() { if (triggerInformationAction == null) { triggerInformationAction = new GerritTriggerInformationAction(); } triggerInformationAction.setErrorMessage(""); try { if (isAnyServer()) { triggerInformationAction.setErrorMessage("Dynamic trigger configuration needs " + "a specific configured server"); } else { dynamicGerritProjects = GerritDynamicUrlProcessor.fetch(triggerConfigURL, serverName); } } catch (ParseException pe) { String logErrorMessage = MessageFormat.format( "ParseException for project: {0} and URL: {1} Message: {2}", new Object[]{job.getName(), triggerConfigURL, pe.getMessage()}); logger.error(logErrorMessage, pe); String triggerInformationMessage = MessageFormat.format( "ParseException when fetching dynamic trigger url: {0}", pe.getMessage()); triggerInformationAction.setErrorMessage(triggerInformationMessage); } catch (SocketTimeoutException ste) { String logErrorMessage = MessageFormat.format( "SocketTimeoutException for project: {0} and URL: {1} Message: {2}", new Object[]{job.getName(), triggerConfigURL, ste.getMessage()}); logger.error(logErrorMessage, ste); String triggerInformationMessage = MessageFormat.format( "SocketTimeoutException when fetching dynamic trigger url: {0}", ste.getMessage()); triggerInformationAction.setErrorMessage(triggerInformationMessage); } catch (IOException ioe) { String logErrorMessage = MessageFormat.format( "IOException for project: {0} and URL: {1} Message: {2}", new Object[]{job.getName(), triggerConfigURL, ioe.getMessage()}); logger.error(logErrorMessage, ioe); String triggerInformationMessage = MessageFormat.format( "IOException when fetching dynamic trigger url: {0}", ioe.getMessage()); triggerInformationAction.setErrorMessage(triggerInformationMessage); } }

Target:
public void updateTriggerConfigURL() { if (triggerInformationAction == null) { triggerInformationAction = new GerritTriggerInformationAction(); } triggerInformationAction.setErrorMessage(""); try { if (isAnyServer()) { triggerInformationAction.setErrorMessage("Dynamic trigger configuration needs " + "a specific configured server"); } else { List<GerritProject> fetchedProjects = GerritDynamicUrlProcessor.fetch(triggerConfigURL, serverName); dynamicGerritProjects = fetchedProjects; } } catch (ParseException pe) { String logErrorMessage = MessageFormat.format( "ParseException for project: {0} and URL: {1} Message: {2}", new Object[]{job.getName(), triggerConfigURL, pe.getMessage()}); logger.error(logErrorMessage, pe); String triggerInformationMessage = MessageFormat.format( "ParseException when fetching dynamic trigger url: {0}", pe.getMessage()); triggerInformationAction.setErrorMessage(triggerInformationMessage); } catch (MalformedURLException mue) { String logErrorMessage = MessageFormat.format( "MalformedURLException for project: {0} and URL: {1} Message: {2}", new Object[]{job.getName(), triggerConfigURL, mue.getMessage()}); logger.error(logErrorMessage, mue); String triggerInformationMessage = MessageFormat.format( "MalformedURLException when fetching dynamic trigger url: {0}", mue.getMessage()); triggerInformationAction.setErrorMessage(triggerInformationMessage); } catch (SocketTimeoutException ste) { String logErrorMessage = MessageFormat.format( "SocketTimeoutException for project: {0} and URL: {1} Message: {2}", new Object[]{job.getName(), triggerConfigURL, ste.getMessage()}); logger.error(logErrorMessage, ste); String triggerInformationMessage = MessageFormat.format( "SocketTimeoutException when fetching dynamic trigger url: {0}", ste.getMessage()); triggerInformationAction.setErrorMessage(triggerInformationMessage); } catch (IOException ioe) { String logErrorMessage = MessageFormat.format( "IOException for project: {0} and URL: {1} Message: {2}", new Object[]{job.getName(), triggerConfigURL, ioe.getMessage()}); logger.error(logErrorMessage, ioe); String triggerInformationMessage = MessageFormat.format( "IOException when fetching dynamic trigger url: {0}", ioe.getMessage()); triggerInformationAction.setErrorMessage(triggerInformationMessage); } }