// For WML, the entity encoding is done now. The encoding writer
// is passed to the producer to do the encoding.
envContext.setContentType("text/vnd.wap.wml");
Writer out = output.getWriter();
Writer enc = new EncodingWriter(out, getCharacterEncoder());
producer = new WMLProducer(out, enc);
}
SerialisationURLListener urlListener = null;
final PackageResources pr = appContext.getPackageResources();
if (pr != null) {