/*
 * Decompiled with CFR 0.152.
 */
package com.l7tech.server.transport.jms2;

import com.l7tech.server.transport.jms2.JmsResourceManager;
import com.l7tech.server.transport.jms2.SessionHolderBase;
import javax.naming.Context;
import javax.naming.NamingException;

class i
implements JmsResourceManager.JndiContextProvider {
    final SessionHolderBase this$0;

    i(SessionHolderBase sessionHolderBase) {
        this.this$0 = sessionHolderBase;
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     */
    @Override
    public void doWithJndiContext(JmsResourceManager.JndiContextCallback jndiContextCallback) throws NamingException {
        Object object = this.this$0.d;
        synchronized (object) {
            jndiContextCallback.doWork(this.this$0.bag.getJndiContext());
        }
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     */
    @Override
    public Object lookup(String string) throws NamingException {
        Object object = this.this$0.d;
        synchronized (object) {
            Context context = this.this$0.bag.getJndiContext();
            return context.lookup(string);
        }
    }
}

