package com.l7tech.server.policy.bundle;

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

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

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

   public void call(Object var1) throws PolicyBundleInstallerException {
      PolicyBundleDryRunResult var2 = (PolicyBundleDryRunResult)var1;
      Map var3 = var2.getComponentIdToBundleXmlMap();
      if (var3 != null) {
         StringBuilder var4 = new StringBuilder();

         for (String var6 : var3.keySet()) {
            var4.append((String)var3.get(var6)).append(System.lineSeparator());
         }

         this.this$0.writeResponse(var4.toString());
      }
   }
}
