// Check if the Policy x-element.script.supported is set to default, via
// the supportsScriptType() method of protocol. If so, exercise the same
// behaviour as before VBM 20080131102 ie. check the "protocol"
// support and followup check on boolean device policy "javascript".
if ((protocol.supportsScriptType() == null) ||
("default".equals(protocol.supportsScriptType())) ) {
// Check to see whether the protocol supports java script and the
// device supports JavaScript, if either don't then skip the body.
//
// Note: This functionality is copied directly from the ScriptTag.