Resource interface changed to getResourceId.