/*
 * 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 bd
implements Functions.Unary<ExpandVariables.Selector.Selection, DebugTraceVariableContext> {
    bd() {
    }

    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 || policyHeader.getPolicyRevision() == 0L ? null : Long.valueOf(policyHeader.getPolicyRevision()));
    }
}

