protected static function loopOperationsWithQuery($operations, $query, $wsdlIdentifier, $domXpath)
    {
        $msgAndVer = [];

        foreach ($operations as $operation) {
            if (!empty($operation->value)) {
                $fullVersion = $domXpath->evaluate(
                    sprintf($query, $operation->value)
                );

                if (!empty($fullVersion)) {
                    $extractedVersion = self::extractMessageVersion($fullVersion);
                    $msgAndVer[$operation->value] = [
                        'version' => $extractedVersion,
                        'wsdl' => $wsdlIdentifier
                    ];
                }
            }
        }

        return $msgAndVer;
    }