DefaultDevice dev = new DefaultDevice(null, null, null);
dev.setName("myDevice");
dev.setPolicyValue("protocol", "XHTMLBasic");
MarinerSessionContext session = envContext.getSessionContext();
InternalDevice internalDevice =
INTERNAL_DEVICE_FACTORY.createInternalDevice(dev);
session.setDevice(internalDevice);
pageContext.setDevice(session.getDevice());
// Create an expression context for the environment context.