Understanding resourceId