/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.audit.AssertionMessages
 *  com.l7tech.gateway.common.audit.AuditDetailMessage
 *  com.l7tech.policy.variable.NoSuchVariableException
 *  com.l7tech.util.Functions$Unary
 */
package com.l7tech.server.policy.assertion.xml;

import com.l7tech.gateway.common.audit.AssertionMessages;
import com.l7tech.gateway.common.audit.AuditDetailMessage;
import com.l7tech.policy.variable.NoSuchVariableException;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.policy.assertion.xml.ServerXslTransformation;
import com.l7tech.util.Functions;

class m
implements Functions.Unary<Object, String> {
    final PolicyEnforcementContext val$context;
    final ServerXslTransformation this$0;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    m(ServerXslTransformation serverXslTransformation, PolicyEnforcementContext policyEnforcementContext) {
        this.this$0 = serverXslTransformation;
        this.val$context = policyEnforcementContext;
    }

    public Object call(String string) {
        try {
            return this.val$context.getVariable(string);
        }
        catch (NoSuchVariableException noSuchVariableException) {
            ServerXslTransformation.access$000(this.this$0, (AuditDetailMessage)AssertionMessages.NO_SUCH_VARIABLE, new String[]{string});
            return null;
        }
    }
}

