for (Iterator i = inputStack.iterator(); i.hasNext(); ) { Input ctx = (Input) i.next(); if (name.equals(ctx.name)) error("entities may not be self-recursive", name); }
  private void pushInput(String name, String text)    throws IOException, XMLStreamException  {    pushInput(new Input(null, new StringReader(text), input.publicId,                        input.systemId, name, input.inputEncoding));    //System.out.println("pushInput "+name+" "+text);  }