Fixes #6672: Allow plugins to more easily take advantage of resource lookup.