/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.EntityHeader
 *  com.l7tech.objectmodel.EntityType
 *  com.l7tech.util.Functions$TernaryThrows
 */
package com.l7tech.server.search.processors;

import com.l7tech.objectmodel.EntityHeader;
import com.l7tech.objectmodel.EntityType;
import com.l7tech.server.search.exceptions.CannotReplaceDependenciesException;
import com.l7tech.server.search.processors.LogSinkDependencyProcessor;
import com.l7tech.util.Functions;
import java.util.Map;

class af
implements Functions.TernaryThrows<String, String, EntityType, Map<EntityHeader, EntityHeader>, CannotReplaceDependenciesException> {
    af(LogSinkDependencyProcessor logSinkDependencyProcessor) {
    }

    public String call(String string, EntityType entityType, Map<EntityHeader, EntityHeader> map) throws CannotReplaceDependenciesException {
        EntityHeader entityHeader = new EntityHeader(string, entityType, null, null);
        try {
            if (map.containsKey(entityHeader)) {
                return map.get(entityHeader).getStrId();
            }
        }
        catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
            throw af.a(cannotReplaceDependenciesException);
        }
        return string;
    }

    private static CannotReplaceDependenciesException a(CannotReplaceDependenciesException cannotReplaceDependenciesException) {
        return cannotReplaceDependenciesException;
    }
}

