@Override public String getProperty(String key, String defaultValue) { String value = getRawPropertyValue(key); if (value == null) { value = defaultValue; } return replaceProperties(value); }
/** * <p>Returns property value with all {@code ${propKey}} like references replaced with the value of * the relevant property with recursive resolution.</p> * * <p>The method returns <code>null</code> if the property is not found.</p> * * @param key the property key. * * @return the value in this property list with * the specified key value. */ @Override public String getProperty(String key) { String value = getRawPropertyValue(key); return replaceProperties(value); }