code: public Element getVariable(String name) {
  
  		Element result = localVariables.get(name);
  
  		// If the result is null, then try to look up a global variable.
  		if (result == null) {
  			result = getGlobalVariable(name);
  		}
  
  		return result;
  	}
docs: Return the Element which corresponds to the given variable name. It will
  first check local variables and then global variables. This method will
  return null if the variable doesn't exist or the argument is null. Note
  that this will clone the value before returning it, if it came from a
  global variable.
  
  @param name
  name of the variable to lookup
  @return Element corresponding to the given variable name or null if it
  could not be found