WP-1209 add bags feature in getPolicy(Set)BySubject functions