Source:
<code>public static synchronized boolean reload() { LOGGER.info("Configuration is being reloaded"); InputStream stream; String defaultMaxAge; String defaultURL; <START> String actionPath = ResourceBundle.getBundle("perseo-core").getString("action.path"); <END> try { PROPERTIES.clear(); stream = new FileInputStream(PATH); PROPERTIES.load(stream); stream.close(); defaultURL = PROPERTIES.getProperty(ACTION_URL_PROP); defaultMaxAge = PROPERTIES.getProperty(MAX_AGE_PROP); } catch (IOException e) { defaultURL = DEFAULT_PERSEO_FE_URL; defaultMaxAge = String.valueOf(DEFAULT_MAX_AGE); } String perseoFeURLEnv = System.getenv(PERSEO_FE_URL_ENV); if (perseoFeURLEnv != null && !perseoFeURLEnv.toLowerCase().matches("^(http|https)://.*$")) { perseoFeURLEnv = "http://" + perseoFeURLEnv; } perseoFeURLEnv = perseoFeURLEnv != null ? perseoFeURLEnv : defaultURL; if (Utils.isValidURL(perseoFeURLEnv)) { actionRule = perseoFeURLEnv.contains(actionPath) ? perseoFeURLEnv : perseoFeURLEnv + actionPath; } else { LOGGER.error(String.format("Invalid value for %s: %s",PERSEO_FE_URL_ENV, perseoFeURLEnv)); return false; } LOGGER.info(String.format("actionRule configuration is: %s",actionRule)); String maxAgeEnv = System.getenv(PERSEO_MAX_AGE_ENV); try { maxAge = maxAgeEnv != null ? Long.parseLong(maxAgeEnv) : Long.parseLong(defaultMaxAge); } catch (NumberFormatException nfe) { LOGGER.error(String.format("Invalid value for %s: %s",PERSEO_MAX_AGE_ENV,nfe)); return false; } LOGGER.info(String.format("maxAge configuration is: %s",maxAge)); return true; }</code><technical_language>content of perseo-main/src/main/resources/perseo-core.properties I misunderstand this. ResourceBundle.getBundle("...").getString("...") a of properties file. Is understanding correct</technical_language>

Target:
public static synchronized boolean reload() { LOGGER.info("Configuration is being reloaded"); InputStream stream; String defaultMaxAge; String defaultURL; String actionPath = "/actions/do"; try { PROPERTIES.clear(); stream = new FileInputStream(PATH); PROPERTIES.load(stream); stream.close(); defaultURL = PROPERTIES.getProperty(ACTION_URL_PROP); defaultMaxAge = PROPERTIES.getProperty(MAX_AGE_PROP); } catch (IOException e) { defaultURL = DEFAULT_PERSEO_FE_URL; defaultMaxAge = String.valueOf(DEFAULT_MAX_AGE); } String perseoFeURLEnv = System.getenv(PERSEO_FE_URL_ENV); if (perseoFeURLEnv != null && !perseoFeURLEnv.toLowerCase().matches("^(http|https)://.*$")) { perseoFeURLEnv = "http://" + perseoFeURLEnv; } perseoFeURLEnv = perseoFeURLEnv != null ? perseoFeURLEnv : defaultURL; if (Utils.isValidURL(perseoFeURLEnv)) { actionRule = perseoFeURLEnv.contains(actionPath) ? perseoFeURLEnv : perseoFeURLEnv + actionPath; } else { LOGGER.error(String.format("Invalid value for %s: %s",PERSEO_FE_URL_ENV, perseoFeURLEnv)); return false; } LOGGER.info(String.format("actionRule configuration is: %s",actionRule)); String maxAgeEnv = System.getenv(PERSEO_MAX_AGE_ENV); try { maxAge = maxAgeEnv != null ? Long.parseLong(maxAgeEnv) : Long.parseLong(defaultMaxAge); } catch (NumberFormatException nfe) { LOGGER.error(String.format("Invalid value for %s: %s",PERSEO_MAX_AGE_ENV,nfe)); return false; } LOGGER.info(String.format("maxAge configuration is: %s",maxAge)); return true; }