protected Variable getVariableImpl(String name, boolean recurse) throws UtilEvalError {
		Variable var = null;

		// Change import precedence if we are a class body/instance
		// Get imported first.
		if (var == null && isClass)
			var = getImportedVar(name);

		if (var == null && variables != null)
			var = (Variable) variables.get(name);

		// Change import precedence if we are a class body/instance
		if (var == null && !isClass)
			var = getImportedVar(name);

		// try parent
		if (recurse && (var == null) && (parent != null))
			var = parent.getVariableImpl(name, recurse);

		return var;
	}