Source:
public void updateTriggerConfigURL() { if (triggerInformationAction == null) { triggerInformationAction = new GerritTriggerInformationAction(); } triggerInformationAction.setErrorMessage(""); try { dynamicGerritProjects = CacheProxy.getCacheProxy().fetchThroughCache(triggerConfigURL); } catch (ParseException pe) { String logErrorMessage = MessageFormat.format( "ParseException for project: {0} and URL: {1} Message: {2}", 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}", 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}", 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}", 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 { dynamicGerritProjects = DynamicConfigurationCacheProxy.getInstance().fetchThroughCache(triggerConfigURL); } catch (ParseException pe) { String logErrorMessage = MessageFormat.format( "ParseException for project: {0} and URL: {1} Message: {2}", 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}", 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}", 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}", 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); } }