Iterator i = global ? variables.iterator() : parameters.iterator();
Iterator i = null; switch (type) { case VARIABLE: i = variables.iterator(); break; case PARAM: i = parameters.iterator(); break; case WITH_PARAM: Map ctx = (Map) withParameters.getFirst(); return ctx.containsKey(name); } if (i != null) {
  public boolean containsKey(String name, boolean global)  {    Iterator i = global ? variables.iterator() : parameters.iterator();    while (i.hasNext())      {        Map ctx = (Map) i.next();        if (ctx.containsKey(name))          {            return true;          }      }    return false;  }