resource
and dispatch on the type.resource
function. The default (Xdata)
implementation with resource as character creates a
Resource object of that name and calls itself again with
this parameter. Thus dispatching on the resource is
possible.