/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.FindException
 *  com.l7tech.policy.GenericEntity
 *  com.l7tech.util.Functions$UnaryThrows
 */
package com.l7tech.server.search.processors;

import com.l7tech.objectmodel.FindException;
import com.l7tech.policy.GenericEntity;
import com.l7tech.server.search.processors.DependencyFinder;
import com.l7tech.server.search.processors.GenericEntityDependencyProcessor;
import com.l7tech.util.Functions;

class aa
implements Functions.UnaryThrows<DependencyFinder.FindResults<GenericEntity>, DependencyFinder.FindResults<GenericEntity>, FindException> {
    final GenericEntityDependencyProcessor this$0;

    aa(GenericEntityDependencyProcessor genericEntityDependencyProcessor) {
        this.this$0 = genericEntityDependencyProcessor;
    }

    public DependencyFinder.FindResults<GenericEntity> call(DependencyFinder.FindResults<GenericEntity> findResults) throws FindException {
        try {
            if (findResults.hasEntity()) {
                return DependencyFinder.FindResults.create(this.this$0.a(findResults.getEntity()), null);
            }
        }
        catch (FindException findException) {
            throw aa.a(findException);
        }
        return findResults;
    }

    private static FindException a(FindException findException) {
        return findException;
    }
}

