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

import com.l7tech.policy.assertion.Assertion;
import com.l7tech.policy.wsp.WspWriter;
import com.l7tech.server.policy.assertion.ServerAssertion;
import com.l7tech.server.policy.variable.DebugTraceVariableContext;
import com.l7tech.server.policy.variable.ExpandVariables;
import com.l7tech.util.Functions;

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

    public ExpandVariables.Selector.Selection call(DebugTraceVariableContext debugTraceVariableContext) {
        ServerAssertion serverAssertion = debugTraceVariableContext.getContext().getTracedAssertion();
        Assertion assertion = serverAssertion == null ? null : (Assertion)serverAssertion.getAssertion();
        return new ExpandVariables.Selector.Selection(assertion == null ? null : WspWriter.getPolicyXml(assertion));
    }
}

