/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.identity.User
 *  com.l7tech.objectmodel.ObjectModelException
 *  com.l7tech.util.Option
 *  org.springframework.transaction.TransactionStatus
 *  org.springframework.transaction.support.TransactionCallback
 */
package com.l7tech.server.bundling;

import com.l7tech.identity.User;
import com.l7tech.objectmodel.ObjectModelException;
import com.l7tech.server.bundling.EntityBundleImporterImpl;
import com.l7tech.server.bundling.EntityContainer;
import com.l7tech.server.bundling.UserContainer;
import com.l7tech.util.Option;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallback;

class f
implements TransactionCallback<Option<ObjectModelException>> {
    final EntityContainer val$entityContainer;
    final EntityBundleImporterImpl this$0;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    f(EntityBundleImporterImpl entityBundleImporterImpl, EntityContainer entityContainer) {
        this.this$0 = entityBundleImporterImpl;
        this.val$entityContainer = entityContainer;
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     */
    public Option<ObjectModelException> doInTransaction(TransactionStatus transactionStatus) {
        try {
            try {
                this.this$0.clientCertManager.revokeUserCert((User)((UserContainer)this.val$entityContainer).getEntity());
            }
            catch (ObjectModelException objectModelException) {
                Option option = Option.optional((Object)((Object)objectModelException));
                transactionStatus.flush();
                return option;
            }
            Option option = Option.none();
            return option;
        }
        finally {
            transactionStatus.flush();
        }
    }
}

