public VariableAction ResolveVariable(XmlQualifiedName qname) {
for (InputScope inputScope = this; inputScope != null; inputScope = inputScope.Parent) {
if (inputScope.Variables != null) {
VariableAction variable = (VariableAction) inputScope.Variables[qname];
if(variable != null) {
return variable;
}
}
}
return null;
}