Source:
<code>private static DefaultClientConfiguration createConfiguration(final String... additionalLocations) { try { final ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if(additionalLocations != null) { <START> for(String location : additionalLocations) { <END> LOG.trace("Trying to load configuration at '" + location + "'"); try (final InputStream inputStream = classLoader.getResourceAsStream(location)) { if (inputStream != null) { return readConfig(inputStream); } } catch (Exception e) { LOG.trace("No config found at '" + location + "'"); } } } try (final InputStream inputStream = classLoader.getResourceAsStream(PLATFORM_LOCATION)) { LOG.trace("Trying to load configuration at '" + PLATFORM_LOCATION + "'"); if (inputStream != null) { return readConfig(inputStream); } } catch (Exception e) { LOG.trace("No config found at '" + PLATFORM_LOCATION + "'"); } try (final InputStream inputStream = classLoader.getResourceAsStream(DEFAULT_LOCATION)) { LOG.trace("Trying to load configuration at '" + DEFAULT_LOCATION + "'"); if (inputStream != null) { return readConfig(inputStream); } } catch (Exception e) { LOG.trace("No config found at '" + DEFAULT_LOCATION + "'"); } try (final InputStream inputStream = classLoader.getResourceAsStream(JAR_LOCATION)) { LOG.trace("Trying to load configuration at '" + JAR_LOCATION + "'"); if (inputStream != null) { return readConfig(inputStream); } } catch (Exception e) { LOG.trace("No config found at '" + JAR_LOCATION + "'"); } return new DefaultClientConfiguration(); } catch (Exception e) { throw new RuntimeException("Can not create configuration!", e); } }</code><technical_language>Add final keyword</technical_language>

Target:
private static DefaultClientConfiguration createConfiguration(final String... additionalLocations) { try { final ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if(additionalLocations != null) { for(final String location : additionalLocations) { LOG.trace("Trying to load configuration at '" + location + "'"); try (final InputStream inputStream = classLoader.getResourceAsStream(location)) { if (inputStream != null) { return readConfig(inputStream); } } catch (final Exception e) { LOG.trace("No config found at '" + location + "'"); } } } try (final InputStream inputStream = classLoader.getResourceAsStream(PLATFORM_LOCATION)) { LOG.trace("Trying to load configuration at '" + PLATFORM_LOCATION + "'"); if (inputStream != null) { return readConfig(inputStream); } } catch (final Exception e) { LOG.trace("No config found at '" + PLATFORM_LOCATION + "'"); } try (final InputStream inputStream = classLoader.getResourceAsStream(DEFAULT_LOCATION)) { LOG.trace("Trying to load configuration at '" + DEFAULT_LOCATION + "'"); if (inputStream != null) { return readConfig(inputStream); } } catch (final Exception e) { LOG.trace("No config found at '" + DEFAULT_LOCATION + "'"); } try (final InputStream inputStream = classLoader.getResourceAsStream(JAR_LOCATION)) { LOG.trace("Trying to load configuration at '" + JAR_LOCATION + "'"); if (inputStream != null) { return readConfig(inputStream); } } catch (final Exception e) { LOG.trace("No config found at '" + JAR_LOCATION + "'"); } return new DefaultClientConfiguration(); } catch (final Exception e) { throw new RuntimeException("Can not create configuration!", e); } }