void (final String name, final String value) { // Skip entities that come from the external subset if (!inInternalSubset) { return; } internalSubset.append(" <!ENTITY "); if (name.startsWith("%")) { internalSubset.append("% ").append(name.substring(1)); } else { internalSubset.append(name); } internalSubset.append(" \"").append(value).append("\">\n"); }