private void interpolate() throws Exception {
Interpolator interpolator = new StringSearchInterpolator();
interpolator.addValueSource(new MapBasedValueSource(properties));
interpolator.addValueSource(new MapBasedValueSource(System.getProperties()));
interpolator.addValueSource(new EnvarBasedValueSource());
for (Entry<String, String> entry : properties.entrySet()) {
properties.put(entry.getKey(), interpolator.interpolate(entry.getValue()));
}
}