protected WBSAXContentHandler createXMLProducer(Writer output) {
// Create a proper protocol character encoder rather than a test one
// since we rely on encoding rules which are defined in the protocol.
ProtocolBuilder builder = new ProtocolBuilder();
VolantisProtocol protocol = builder.build(
new ProtocolRegistry.WMLVersion1_3Factory(),
InternalDeviceTestHelper.createTestDevice());
CharacterEncoder pce = new ProtocolCharacterEncoder(protocol);
EncodingWriter enc = new EncodingWriter(output, pce);