code: private String resolveVariables(String name) {
  		// Replace __variable__ with ${variable} and then evaluate the name as a groovy string
  		String outName = "";
  		int startPos = 0;
  		int pos = name.indexOf("__", startPos);
  		while (pos != -1) {
  			outName += name.substring(startPos, pos);
  			int endPos = name.indexOf("__", pos + 2);
  			String variableName = name.substring(pos + 2, endPos);
  			Object variableValue = model.resolveParameter(variableName, null);
  			if (variableValue == null) {
  				logWarn("Found no filepath variable __" + variableName + "__! Will use default value: " + variableName);
  				variableValue = variableName;
  			}
  			logDebug("Found filepath variable: " + variableName + " = " + variableValue);
  			outName += variableValue;
  			startPos = endPos + 2;
  
  			// Look for the next variable
  			pos = name.indexOf("__", startPos);
  		}
  		outName += name.substring(startPos);
  		logDebug("Resolved filepath [" + name + "] to [" + outName + "]");
  		return outName;
  	}
docs: Replaces any __variable__ in the supplied name with the corresponding value in the model
  
  @param name
  @return