public static Map<String, String> yammerMetricScopeToTags(String scope) {
        if (scope != null) {
            String[] kv = scope.split("\\.");
            if (kv.length % 2 != 0) {
                return null;
            }
            Map<String, String> tags = new HashMap<>();
            for (int i = 0; i < kv.length; i += 2) {
                tags.put(kv[i], kv[i + 1]);
            }
            return tags;
        } else {
            return Collections.emptyMap();
        }
    }
Convert a yammer metrics scope to a tags map.

@param scope Scope of the Yammer metric.
@return Empty map for {@code null} scope, {@code null} for scope with keys without a matching value (i.e. unacceptable
scope) (see <a href="https://github.com/linkedin/cruise-control/issues/1296">...</a>), parsed tags otherwise.
core/src/main/java/kafka/autobalancer/metricsreporter/metric/MetricsUtils.java