*
* @return WML 1.3 Protocol class
*/
protected DOMProtocol createProtocol() {
// todo: use test version, requires moving all test protocols to runtime.
ProtocolBuilder builder = new ProtocolBuilder();
ProtocolRegistry.WMLVersion1_3Factory protocolFactory =
new ProtocolRegistry.WMLVersion1_3Factory();
final DefaultDevice defaultDevice = (DefaultDevice) device.getDevice();
defaultDevice.setPolicyValue(
DevicePolicyConstants.SUPPORTS_JAVASCRIPT, "true");
defaultDevice.setPolicyValue(
DevicePolicyConstants.DEVICE_HONOURS_ALIGN_WHEN_MODE_NOWRAP, "true");
//device.setProtocolConfiguration(protocolFactory.createConfiguration(device));
device.setProtocolConfiguration(null);
DOMProtocol protocol = (DOMProtocol) builder.build(
protocolFactory, device);
return protocol;
}