/** * Look for a specific property in the config file or the system properties. * * @param key the property to look for * @return the preferred value for the key, or {@code null} if the key is not found */ private String findProperty(String key) { String value = fileProperties.getProperty(key); try { value = env.getSystemProperty(key, value); } catch (SecurityException e) { logSystemReadException(key, e); } return value; }
/** * Look for a specific property in the config file or the system properties. * * @param key the property to look for * @return the preferred value for the key, or {@code null} if the key is not found */ private String findProperty(String key) { String value = fileProperties.getProperty(key); try { value = env.getSystemProperty(key, value); } catch (SecurityException e) { logSystemReadException(key, e); } return value; }