/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.admin.PolicyBundleInstallerAdmin$PolicyBundleInstallerException
 *  com.l7tech.policy.bundle.PolicyBundleDryRunResult
 *  com.l7tech.util.Functions$UnaryVoidThrows
 */
package com.l7tech.server.policy.bundle;

import com.l7tech.gateway.common.admin.PolicyBundleInstallerAdmin;
import com.l7tech.policy.bundle.PolicyBundleDryRunResult;
import com.l7tech.server.policy.bundle.PolicyBundleInstallerAbstractServerAssertion;
import com.l7tech.util.Functions;
import java.util.Map;

class b
implements Functions.UnaryVoidThrows<Object, Exception> {
    final PolicyBundleInstallerAbstractServerAssertion this$0;

    b(PolicyBundleInstallerAbstractServerAssertion policyBundleInstallerAbstractServerAssertion) {
        this.this$0 = policyBundleInstallerAbstractServerAssertion;
    }

    public void call(Object object) throws PolicyBundleInstallerAdmin.PolicyBundleInstallerException {
        PolicyBundleDryRunResult policyBundleDryRunResult = (PolicyBundleDryRunResult)object;
        Map map = policyBundleDryRunResult.getComponentIdToBundleXmlMap();
        if (map != null) {
            StringBuilder stringBuilder = new StringBuilder();
            for (String string : map.keySet()) {
                stringBuilder.append((String)map.get(string)).append(System.lineSeparator());
            }
            this.this$0.writeResponse(stringBuilder.toString());
        }
    }
}

