default:
throw new IllegalArgumentException("Unknown node kind " + node.getNodeKind());
}
// context item may be a JSObjectValue for non-DOM event handlers
} else if (item instanceof JSObjectValue){
return new JSObjectType();
} else {
// it must be an atomic value, though we don't use this option
return ((AtomicValue)item).getTypeLabel();
}