Helper/Vcl.php
public function getActiveVersion($service, $activeVersion)
    {
        $currActiveVersion = $this->determineVersions($service->versions);
        if ($currActiveVersion['active_version'] != $activeVersion) {
            throw new LocalizedException(__('Active versions mismatch.'));
        }
        return $currActiveVersion;
    }
public function getActiveVersion($service, $activeVersion)
    {
        $currActiveVersion = $this->determineVersions($service->versions);
        if ($currActiveVersion['active_version'] != $activeVersion) {
            throw new LocalizedException(__('Active versions mismatch.'));
        }
        return $currActiveVersion;
    }
Fetches and validates active version

@param $service
@param $activeVersion
@return array
@throws LocalizedException