/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.policy.PolicyHeader
 *  com.l7tech.util.Functions$Unary
 */
package com.l7tech.server.policy.variable;

import com.l7tech.policy.PolicyHeader;
import com.l7tech.server.policy.PolicyMetadata;
import com.l7tech.server.policy.variable.DebugTraceVariableContext;
import com.l7tech.server.policy.variable.ExpandVariables;
import com.l7tech.util.Functions;

class bc
implements Functions.Unary<ExpandVariables.Selector.Selection, DebugTraceVariableContext> {
    bc() {
    }

    public ExpandVariables.Selector.Selection call(DebugTraceVariableContext debugTraceVariableContext) {
        PolicyMetadata policyMetadata = debugTraceVariableContext.getContext().getOriginalContext().getCurrentPolicyMetadata();
        PolicyHeader policyHeader = policyMetadata == null ? null : policyMetadata.getPolicyHeader();
        return new ExpandVariables.Selector.Selection(policyHeader == null ? null : policyHeader.getName());
    }
}

