@Override
  public Reader getEntity(StdXMLReader xmlReader, String name) throws XMLParseException {
    Object obj = entities.get(name);

    if (obj == null) {
      return null;
    }
    else if (obj instanceof String) {
      return new StringReader((String)obj);
    }
    else {
      String[] id = (String[])obj;
      return openExternalEntity(xmlReader, id[0], id[1]);
    }
  }
@Override
  public Reader getEntity(StdXMLReader xmlReader, String name)