}
else
  private void parsePEReference()    throws IOException, XMLStreamException  {    String name = readNmtoken(true);    require(';');    if (doctype != null)      {        Object entity = doctype.entities.get("%" + name);        if (entity != null)          {            if (entity instanceof String)              pushInput(name, (String) entity);            else              pushInput(name, (ExternalIds) entity);          }      }    error("reference to undeclared parameter entity", name);  }