public static String substituteVariables(final String originalValue, final List<Variable> variables) {
		if(originalValue == null) {
			return null;
		}
		String newValue = originalValue;
		for (final Variable variable : variables) {
			newValue = newValue.replace("${" + variable.getId() + "}", variable.getValue());
		}
		return newValue;
	}