FIX getResourceKind dispatching