@Override
  public void externalEntityDecl(final String name, final String publicID,
                                 final String systemID) {
    // Store the public and system ids for the name
    externalEntities.put(name, new String[]{publicID, systemID});

    if (!inInternalSubset) {
      return;
    }

    internalSubset.append("  <!ENTITY ").append(name);
    appendExternalId(publicID, systemID);
    internalSubset.append(">\n");
  }
@Override
  public void externalEntityDecl(final String name, final String publicID,
                                 final String systemID)