class VirtualGroupService {

    public Map<UmsRight, String> createVirtualGroups(String accountId, String environmentCrn) {
        Map<UmsRight, String> virtualGroups = new HashMap<>();
        for (UmsRight right : UmsRight.values()) {
            virtualGroups.put(right, createOrGetVirtualGroup(accountId, environmentCrn, right.getRight()));
        }
        return virtualGroups;
    }

}