ResourceRule instead of ResourceGenerator