/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.audit.Audit
 *  com.l7tech.policy.variable.Syntax
 */
package com.l7tech.server.otel.util;

import com.l7tech.gateway.common.audit.Audit;
import com.l7tech.policy.variable.Syntax;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.policy.variable.ExpandVariables;

public class OtelContextUtil {
    public static String getResolvedContextValue(PolicyEnforcementContext policyEnforcementContext, String string, Audit audit) {
        String string2 = string;
        String[] stringArray = Syntax.getReferencedNames((String)string);
        if (stringArray.length > 0) {
            string2 = ExpandVariables.process(string, policyEnforcementContext.getVariableMap(stringArray, audit), audit);
        }
        return string2;
    }
}

