public CompiledValue resolve(String name) throws TypeMismatchException, AmbiguousNameException {
    CompiledValue value = resolveAsVariable(name);
    if (value != null) {
      return value;
    }
    // attribute name or operation name (no args) of a variable in the current scope when there is
    // no ambiguity, i.e. this property name belongs to only one variable in the scope
    value = resolveImplicitPath(name);
    if (value == null)
    // cannot be resolved
    {
      throw new TypeMismatchException(
          String.format("The attribute or method name ' %s ' could not be resolved",
              name));
    }
    return value;
  }
bind a named iterator (to current scope)
geode-core/src/main/java/org/apache/geode/cache/query/internal/ExecutionContext.java