public static Variable addOrUpdateVariable(final String varId, final String varValue, final boolean overwrite, final boolean report, final List<Variable> variables) {
		if (varId == null) {
			return null;
		}

		final Variable var = new Variable();
		var.setId(varId);
		var.setValue(varValue);
		var.setOverwrite(overwrite);
		var.setReport(report);

		return addOrUpdateVariable(var, variables);
	}