Accept arbitrary objects as Resources here as well.