@Override
  public void addExternalEntity(String name, String publicID, String systemID) {
    if (!entities.containsKey(name)) {
      entities.put(name, new String[]{publicID, systemID});
    }
  }
@Override
  public void addExternalEntity(String name, String publicID, String systemID)