package com.l7tech.server.transport.email;

import com.l7tech.server.MessageProcessor;
import com.l7tech.server.StashManagerFactory;
import com.l7tech.server.util.EventChannel;
import com.l7tech.util.Config;
import jakarta.mail.internet.MimeMessage;
import java.io.IOException;
import java.util.logging.Logger;
import org.springframework.context.ApplicationContext;

public class EmailHandlerImpl implements EmailHandler {
   private final MessageProcessor a;
   private final StashManagerFactory b;
   private final EventChannel c;
   private final Config d;
   private static final Logger e;
   private static final String[] f;

   public EmailHandlerImpl(ApplicationContext var1) {
      if (var1 == null) {
         String[] var3 = f;
         throw new IllegalArgumentException(var3[18]);
      }

      String[] var2 = f;
      this.a = (MessageProcessor)var1.getBean(var2[20], MessageProcessor.class);
      this.b = (StashManagerFactory)var1.getBean(var2[8], StashManagerFactory.class);
      this.c = (EventChannel)var1.getBean(var2[6], EventChannel.class);
      this.d = (Config)var1.getBean(var2[4], Config.class);
   }

   @Override
   public void onMessage(EmailListenerConfig param1, MimeMessage param2) throws EmailListenerRuntimeException {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 000: getstatic com/l7tech/policy/assertion/AssertionStatus.UNDEFINED Lcom/l7tech/policy/assertion/AssertionStatus;
      // 003: astore 7
      // 005: bipush 0
      // 006: istore 8
      // 008: aload 2
      // 009: invokevirtual jakarta/mail/internet/MimeMessage.getContentType ()Ljava/lang/String;
      // 00c: astore 11
      // 00e: aload 11
      // 010: ifnonnull 01b
      // 013: getstatic com/l7tech/common/mime/ContentTypeHeader.XML_DEFAULT Lcom/l7tech/common/mime/ContentTypeHeader;
      // 016: astore 4
      // 018: goto 022
      // 01b: aload 11
      // 01d: invokestatic com/l7tech/common/mime/ContentTypeHeader.create (Ljava/lang/String;)Lcom/l7tech/common/mime/ContentTypeHeader;
      // 020: astore 4
      // 022: aload 2
      // 023: invokevirtual jakarta/mail/internet/MimeMessage.getSize ()I
      // 026: i2l
      // 027: lstore 9
      // 029: aload 2
      // 02a: invokevirtual jakarta/mail/internet/MimeMessage.getInputStream ()Ljava/io/InputStream;
      // 02d: astore 3
      // 02e: aload 1
      // 02f: invokevirtual com/l7tech/server/transport/email/EmailListenerConfig.getEmailListener ()Lcom/l7tech/gateway/common/transport/email/EmailListener;
      // 032: invokevirtual com/l7tech/gateway/common/transport/email/EmailListener.properties ()Ljava/util/Properties;
      // 035: getstatic com/l7tech/gateway/common/transport/email/EmailListener.PROP_REQUEST_SIZE_LIMIT Ljava/lang/String;
      // 038: invokevirtual java/util/Properties.getProperty (Ljava/lang/String;)Ljava/lang/String;
      // 03b: astore 12
      // 03d: aload 12
      // 03f: ifnonnull 05b
      // 042: aload 0
      // 043: getfield com/l7tech/server/transport/email/EmailHandlerImpl.d Lcom/l7tech/util/Config;
      // 046: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 049: bipush 21
      // 04b: aaload
      // 04c: invokestatic com/l7tech/message/Message.getMaxBytes ()J
      // 04f: invokeinterface com/l7tech/util/Config.getLongProperty (Ljava/lang/String;J)J 4
      // 054: goto 060
      // 057: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 05a: athrow
      // 05b: aload 12
      // 05d: invokestatic java/lang/Long.parseLong (Ljava/lang/String;)J
      // 060: lstore 13
      // 062: lload 13
      // 064: lconst_0
      // 065: lcmp
      // 066: ifle 07b
      // 069: lload 9
      // 06b: lload 13
      // 06d: lcmp
      // 06e: ifle 07b
      // 071: goto 078
      // 074: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 077: athrow
      // 078: bipush 1
      // 079: istore 8
      // 07b: new java/util/HashMap
      // 07e: dup
      // 07f: invokespecial java/util/HashMap.<init> ()V
      // 082: astore 15
      // 084: aload 2
      // 085: invokevirtual jakarta/mail/internet/MimeMessage.getAllHeaders ()Ljava/util/Enumeration;
      // 088: astore 16
      // 08a: aload 16
      // 08c: invokeinterface java/util/Enumeration.hasMoreElements ()Z 1
      // 091: ifeq 0b5
      // 094: aload 16
      // 096: invokeinterface java/util/Enumeration.nextElement ()Ljava/lang/Object; 1
      // 09b: checkcast jakarta/mail/Header
      // 09e: astore 17
      // 0a0: aload 15
      // 0a2: aload 17
      // 0a4: invokevirtual jakarta/mail/Header.getName ()Ljava/lang/String;
      // 0a7: aload 17
      // 0a9: invokevirtual jakarta/mail/Header.getValue ()Ljava/lang/String;
      // 0ac: invokeinterface java/util/Map.put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 3
      // 0b1: pop
      // 0b2: goto 08a
      // 0b5: aload 15
      // 0b7: invokestatic java/util/Collections.unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;
      // 0ba: astore 5
      // 0bc: aload 15
      // 0be: getstatic com/l7tech/xml/soap/SoapUtil.SOAPACTION Ljava/lang/String;
      // 0c1: invokeinterface java/util/Map.get (Ljava/lang/Object;)Ljava/lang/Object; 2
      // 0c6: checkcast java/lang/String
      // 0c9: astore 16
      // 0cb: aload 16
      // 0cd: ifnonnull 114
      // 0d0: aload 4
      // 0d2: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 0d5: astore 19
      // 0d7: aload 19
      // 0d9: bipush 10
      // 0db: aaload
      // 0dc: invokevirtual com/l7tech/common/mime/ContentTypeHeader.getParam (Ljava/lang/String;)Ljava/lang/String;
      // 0df: astore 16
      // 0e1: aload 16
      // 0e3: ifnull 13b
      // 0e6: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 0e9: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 0ec: invokevirtual java/util/logging/Logger.isLoggable (Ljava/util/logging/Level;)Z
      // 0ef: ifeq 13b
      // 0f2: goto 0f9
      // 0f5: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 0f8: athrow
      // 0f9: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 0fc: aload 16
      // 0fe: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 101: bipush 15
      // 103: aaload
      // 104: swap
      // 105: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001" ]
      // 10a: invokevirtual java/util/logging/Logger.finer (Ljava/lang/String;)V
      // 10d: goto 13b
      // 110: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 113: athrow
      // 114: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 117: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 11a: invokevirtual java/util/logging/Logger.isLoggable (Ljava/util/logging/Level;)Z
      // 11d: ifeq 13b
      // 120: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 123: aload 16
      // 125: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 128: bipush 11
      // 12a: aaload
      // 12b: swap
      // 12c: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001" ]
      // 131: invokevirtual java/util/logging/Logger.finer (Ljava/lang/String;)V
      // 134: goto 13b
      // 137: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 13a: athrow
      // 13b: aload 16
      // 13d: astore 6
      // 13f: goto 16e
      // 142: astore 9
      // 144: new com/l7tech/server/transport/email/EmailListenerRuntimeException
      // 147: dup
      // 148: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 14b: astore 19
      // 14d: aload 19
      // 14f: bipush 14
      // 151: aaload
      // 152: aload 9
      // 154: invokespecial com/l7tech/server/transport/email/EmailListenerRuntimeException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 157: athrow
      // 158: astore 9
      // 15a: new com/l7tech/server/transport/email/EmailListenerRuntimeException
      // 15d: dup
      // 15e: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 161: astore 19
      // 163: aload 19
      // 165: bipush 13
      // 167: aaload
      // 168: aload 9
      // 16a: invokespecial com/l7tech/server/transport/email/EmailListenerRuntimeException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 16d: athrow
      // 16e: bipush 1
      // 16f: anewarray 336
      // 172: dup
      // 173: bipush 0
      // 174: getstatic com/l7tech/gateway/common/service/PublishedService.DEFAULT_GOID Lcom/l7tech/objectmodel/Goid;
      // 177: aastore
      // 178: astore 9
      // 17a: aload 1
      // 17b: invokevirtual com/l7tech/server/transport/email/EmailListenerConfig.getEmailListener ()Lcom/l7tech/gateway/common/transport/email/EmailListener;
      // 17e: invokevirtual com/l7tech/gateway/common/transport/email/EmailListener.properties ()Ljava/util/Properties;
      // 181: astore 10
      // 183: aload 10
      // 185: getstatic com/l7tech/gateway/common/transport/email/EmailListener.PROP_IS_HARDWIRED_SERVICE Ljava/lang/String;
      // 188: invokevirtual java/util/Properties.getProperty (Ljava/lang/String;)Ljava/lang/String;
      // 18b: astore 11
      // 18d: aload 11
      // 18f: ifnull 1b7
      // 192: aload 11
      // 194: invokestatic java/lang/Boolean.parseBoolean (Ljava/lang/String;)Z
      // 197: ifeq 1b7
      // 19a: goto 1a1
      // 19d: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 1a0: athrow
      // 1a1: aload 10
      // 1a3: getstatic com/l7tech/gateway/common/transport/email/EmailListener.PROP_HARDWIRED_SERVICE_ID Ljava/lang/String;
      // 1a6: invokevirtual java/util/Properties.getProperty (Ljava/lang/String;)Ljava/lang/String;
      // 1a9: astore 11
      // 1ab: aload 9
      // 1ad: bipush 0
      // 1ae: getstatic com/l7tech/objectmodel/EntityType.SERVICE Lcom/l7tech/objectmodel/EntityType;
      // 1b1: aload 11
      // 1b3: invokestatic com/l7tech/util/GoidUpgradeMapper.mapId (Lcom/l7tech/objectmodel/EntityType;Ljava/lang/String;)Lcom/l7tech/objectmodel/Goid;
      // 1b6: aastore
      // 1b7: goto 1d1
      // 1ba: astore 10
      // 1bc: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 1bf: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 1c2: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 1c5: astore 19
      // 1c7: aload 19
      // 1c9: bipush 16
      // 1cb: aaload
      // 1cc: aload 10
      // 1ce: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 1d1: new com/l7tech/message/Message
      // 1d4: dup
      // 1d5: invokespecial com/l7tech/message/Message.<init> ()V
      // 1d8: astore 10
      // 1da: aload 10
      // 1dc: aload 0
      // 1dd: getfield com/l7tech/server/transport/email/EmailHandlerImpl.b Lcom/l7tech/server/StashManagerFactory;
      // 1e0: invokeinterface com/l7tech/server/StashManagerFactory.createStashManager ()Lcom/l7tech/common/mime/StashManager; 1
      // 1e5: aload 4
      // 1e7: aload 3
      // 1e8: lconst_0
      // 1e9: invokevirtual com/l7tech/message/Message.initialize (Lcom/l7tech/common/mime/StashManager;Lcom/l7tech/common/mime/ContentTypeHeader;Ljava/io/InputStream;J)V
      // 1ec: aload 10
      // 1ee: new com/l7tech/server/transport/email/a
      // 1f1: dup
      // 1f2: aload 0
      // 1f3: aload 5
      // 1f5: aload 6
      // 1f7: aload 9
      // 1f9: invokespecial com/l7tech/server/transport/email/a.<init> (Lcom/l7tech/server/transport/email/EmailHandlerImpl;Ljava/util/Map;Ljava/lang/String;[Lcom/l7tech/objectmodel/Goid;)V
      // 1fc: invokevirtual com/l7tech/message/Message.attachEmailKnob (Lcom/l7tech/message/EmailKnob;)V
      // 1ff: aload 10
      // 201: aconst_null
      // 202: bipush 0
      // 203: invokestatic com/l7tech/server/message/PolicyEnforcementContextFactory.createPolicyEnforcementContext (Lcom/l7tech/message/Message;Lcom/l7tech/message/Message;Z)Lcom/l7tech/server/message/PolicyEnforcementContext;
      // 206: astore 11
      // 208: aconst_null
      // 209: astore 12
      // 20b: aconst_null
      // 20c: astore 13
      // 20e: aconst_null
      // 20f: astore 14
      // 211: iload 8
      // 213: ifne 320
      // 216: aload 0
      // 217: getfield com/l7tech/server/transport/email/EmailHandlerImpl.a Lcom/l7tech/server/MessageProcessor;
      // 21a: aload 11
      // 21c: invokevirtual com/l7tech/server/MessageProcessor.processMessage (Lcom/l7tech/server/message/PolicyEnforcementContext;)Lcom/l7tech/policy/assertion/AssertionStatus;
      // 21f: astore 7
      // 221: aload 11
      // 223: aload 7
      // 225: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.setPolicyResult (Lcom/l7tech/policy/assertion/AssertionStatus;)V 2
      // 22a: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 22d: aload 7
      // 22f: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 232: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 235: bipush 5
      // 236: aaload
      // 237: swap
      // 238: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001" ]
      // 23d: invokevirtual java/util/logging/Logger.finest (Ljava/lang/String;)V
      // 240: aload 11
      // 242: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getResponse ()Lcom/l7tech/message/Message; 1
      // 247: ldc com/l7tech/message/XmlKnob
      // 249: invokevirtual com/l7tech/message/Message.getKnob (Ljava/lang/Class;)Ljava/lang/Object;
      // 24c: ifnonnull 265
      // 24f: aload 11
      // 251: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getResponse ()Lcom/l7tech/message/Message; 1
      // 256: ldc com/l7tech/message/MimeKnob
      // 258: invokevirtual com/l7tech/message/Message.getKnob (Ljava/lang/Class;)Ljava/lang/Object;
      // 25b: ifnull 2b8
      // 25e: goto 265
      // 261: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 264: athrow
      // 265: aload 7
      // 267: getstatic com/l7tech/policy/assertion/AssertionStatus.NONE Lcom/l7tech/policy/assertion/AssertionStatus;
      // 26a: if_acmpeq 297
      // 26d: goto 274
      // 270: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 273: athrow
      // 274: aload 11
      // 276: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.isStealthResponseMode ()Z 1
      // 27b: ifeq 297
      // 27e: goto 285
      // 281: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 284: athrow
      // 285: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 288: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 28b: bipush 3
      // 28c: aaload
      // 28d: invokevirtual java/util/logging/Logger.info (Ljava/lang/String;)V
      // 290: goto 2c7
      // 293: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 296: athrow
      // 297: new java/io/ByteArrayInputStream
      // 29a: dup
      // 29b: aload 11
      // 29d: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getResponse ()Lcom/l7tech/message/Message; 1
      // 2a2: invokevirtual com/l7tech/message/Message.getXmlKnob ()Lcom/l7tech/message/XmlKnob;
      // 2a5: invokeinterface com/l7tech/message/XmlKnob.getDocumentReadOnly ()Lorg/w3c/dom/Document; 1
      // 2aa: invokestatic com/l7tech/common/io/XmlUtil.nodeToString (Lorg/w3c/dom/Node;)Ljava/lang/String;
      // 2ad: invokevirtual java/lang/String.getBytes ()[B
      // 2b0: invokespecial java/io/ByteArrayInputStream.<init> ([B)V
      // 2b3: astore 14
      // 2b5: goto 2c7
      // 2b8: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 2bb: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 2be: astore 19
      // 2c0: aload 19
      // 2c2: bipush 2
      // 2c3: aaload
      // 2c4: invokevirtual java/util/logging/Logger.finer (Ljava/lang/String;)V
      // 2c7: goto 341
      // 2ca: astore 15
      // 2cc: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 2cf: astore 19
      // 2d1: aload 19
      // 2d3: bipush 1
      // 2d4: aaload
      // 2d5: astore 16
      // 2d7: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 2da: getstatic java/util/logging/Level.INFO Ljava/util/logging/Level;
      // 2dd: aload 16
      // 2df: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;)V
      // 2e2: aload 16
      // 2e4: astore 12
      // 2e6: aload 19
      // 2e8: bipush 9
      // 2ea: aaload
      // 2eb: astore 13
      // 2ed: goto 341
      // 2f0: astore 15
      // 2f2: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 2f5: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 2f8: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 2fb: astore 19
      // 2fd: aload 19
      // 2ff: bipush 12
      // 301: aaload
      // 302: aload 15
      // 304: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 307: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
      // 30a: aload 15
      // 30c: invokevirtual java/lang/Throwable.getMessage ()Ljava/lang/String;
      // 30f: astore 12
      // 311: aload 12
      // 313: ifnonnull 31d
      // 316: aload 15
      // 318: invokevirtual java/lang/Throwable.toString ()Ljava/lang/String;
      // 31b: astore 12
      // 31d: goto 341
      // 320: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 323: astore 19
      // 325: aload 19
      // 327: bipush 17
      // 329: aaload
      // 32a: astore 15
      // 32c: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 32f: getstatic java/util/logging/Level.INFO Ljava/util/logging/Level;
      // 332: aload 15
      // 334: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;)V
      // 337: aload 15
      // 339: astore 12
      // 33b: aload 19
      // 33d: bipush 0
      // 33e: aaload
      // 33f: astore 13
      // 341: aload 14
      // 343: ifnonnull 3e3
      // 346: aload 11
      // 348: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.isStealthResponseMode ()Z 1
      // 34d: ifeq 36a
      // 350: goto 357
      // 353: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 356: athrow
      // 357: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.e Ljava/util/logging/Logger;
      // 35a: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 35d: bipush 19
      // 35f: aaload
      // 360: invokevirtual java/util/logging/Logger.info (Ljava/lang/String;)V
      // 363: goto 3e3
      // 366: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 369: athrow
      // 36a: aload 12
      // 36c: ifnonnull 376
      // 36f: aload 7
      // 371: invokevirtual com/l7tech/policy/assertion/AssertionStatus.getMessage ()Ljava/lang/String;
      // 374: astore 12
      // 376: aload 11
      // 378: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getService ()Lcom/l7tech/gateway/common/service/PublishedService; 1
      // 37d: ifnull 391
      // 380: aload 11
      // 382: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getService ()Lcom/l7tech/gateway/common/service/PublishedService; 1
      // 387: invokevirtual com/l7tech/gateway/common/service/PublishedService.getSoapVersion ()Lcom/l7tech/xml/soap/SoapVersion;
      // 38a: goto 394
      // 38d: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 390: athrow
      // 391: getstatic com/l7tech/xml/soap/SoapVersion.UNKNOWN Lcom/l7tech/xml/soap/SoapVersion;
      // 394: aload 13
      // 396: ifnonnull 3a6
      // 399: getstatic com/l7tech/server/transport/email/EmailHandlerImpl.f [Ljava/lang/String;
      // 39c: bipush 7
      // 39e: aaload
      // 39f: goto 3a8
      // 3a2: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 3a5: athrow
      // 3a6: aload 13
      // 3a8: aload 12
      // 3aa: aconst_null
      // 3ab: ldc ""
      // 3ad: invokestatic com/l7tech/xml/soap/SoapFaultUtils.generateSoapFaultXml (Lcom/l7tech/xml/soap/SoapVersion;Ljava/lang/String;Ljava/lang/String;Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
      // 3b0: astore 15
      // 3b2: aload 15
      // 3b4: ifnull 3d4
      // 3b7: aload 0
      // 3b8: getfield com/l7tech/server/transport/email/EmailHandlerImpl.c Lcom/l7tech/server/util/EventChannel;
      // 3bb: new com/l7tech/server/event/FaultProcessed
      // 3be: dup
      // 3bf: aload 11
      // 3c1: aload 15
      // 3c3: aload 0
      // 3c4: getfield com/l7tech/server/transport/email/EmailHandlerImpl.a Lcom/l7tech/server/MessageProcessor;
      // 3c7: invokespecial com/l7tech/server/event/FaultProcessed.<init> (Lcom/l7tech/server/message/PolicyEnforcementContext;Ljava/lang/String;Lcom/l7tech/server/MessageProcessor;)V
      // 3ca: invokevirtual com/l7tech/server/util/EventChannel.publishEvent (Lorg/springframework/context/ApplicationEvent;)V
      // 3cd: goto 3d4
      // 3d0: invokestatic com/l7tech/server/transport/email/EmailHandlerImpl.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 3d3: athrow
      // 3d4: goto 3e3
      // 3d7: astore 15
      // 3d9: new com/l7tech/server/transport/email/EmailListenerRuntimeException
      // 3dc: dup
      // 3dd: aload 15
      // 3df: invokespecial com/l7tech/server/transport/email/EmailListenerRuntimeException.<init> (Ljava/lang/Throwable;)V
      // 3e2: athrow
      // 3e3: aload 11
      // 3e5: invokestatic com/l7tech/util/ResourceUtils.closeQuietly (Ljava/io/Closeable;)V
      // 3e8: goto 401
      // 3eb: astore 14
      // 3ed: new com/l7tech/server/transport/email/EmailListenerRuntimeException
      // 3f0: dup
      // 3f1: aload 14
      // 3f3: invokespecial com/l7tech/server/transport/email/EmailListenerRuntimeException.<init> (Ljava/lang/Throwable;)V
      // 3f6: athrow
      // 3f7: astore 18
      // 3f9: aload 11
      // 3fb: invokestatic com/l7tech/util/ResourceUtils.closeQuietly (Ljava/io/Closeable;)V
      // 3fe: aload 18
      // 400: athrow
      // 401: goto 410
      // 404: astore 9
      // 406: new java/lang/RuntimeException
      // 409: dup
      // 40a: aload 9
      // 40c: invokespecial java/lang/RuntimeException.<init> (Ljava/lang/Throwable;)V
      // 40f: athrow
      // 410: return
      // try (116 -> 128): 129 java/io/IOException
      // try (98 -> 114): 114 java/io/IOException
      // try (96 -> 102): 103 java/io/IOException
      // try (43 -> 51): 52 java/io/IOException
      // try (28 -> 38): 38 java/io/IOException
      // try (4 -> 133): 134 java/io/IOException
      // try (4 -> 133): 145 jakarta/mail/MessagingException
      // try (171 -> 176): 177 java/io/IOException
      // try (163 -> 189): 190 java/lang/Exception
      // try (270 -> 282): 282 java/io/IOException
      // try (264 -> 273): 274 java/io/IOException
      // try (256 -> 267): 268 java/io/IOException
      // try (239 -> 261): 262 java/io/IOException
      // try (234 -> 302): 303 com/l7tech/server/policy/PolicyVersionException
      // try (234 -> 302): 321 java/lang/Throwable
      // try (402 -> 414): 415 java/io/IOException
      // try (388 -> 394): 394 java/io/IOException
      // try (378 -> 385): 385 java/io/IOException
      // try (359 -> 371): 371 java/io/IOException
      // try (357 -> 362): 363 java/io/IOException
      // try (378 -> 417): 418 org/xml/sax/SAXException
      // try (230 -> 424): 427 java/io/IOException
      // try (230 -> 424): 433 null
      // try (427 -> 434): 433 null
      // try (156 -> 438): 439 java/io/IOException
   }

   static {
      String[] var5 = new String[22];
      int var3 = 0;
      String var2 = "\u001b$Z7?R1\n-B'4Ugx:V44Ta=,\u0013&>\u0006r6h\\'%Br,-Wr'Ca+!\\<qIux8\\>8Ej\u0014\u0016'\u0013 4Uc7&@7qTv;-Z$4BL\b'_;2_3*-G'#Hv<hV #Iax)]6qUg=)_&9\u0006~7,Vr8U3+-G|qh|,h@7?Bz6/\u0013 4Uc7&@7qKv+;R54\b\f+-A$4TP7&U;6\u001a\b'_;2_3*-@'=Rv<hZ<qUg9<F!q\u001d5-@!0Av\b:\\14U`1&T\u0017'C},\u000b[3?Hv4\u0006\u000b-A$4T\u0013+<R!9kr6)T7#`r;<\\ (\u0006\u001b$Z7?R\u00069+G;>H;\u001e'F<5\u0006v5)Z>qNv9,V qR|x=@7q@|*h`\u001d\u0010vR;<Z=?\u0006e9$F7k\u0006@\u0017\tc\u00132Rz7&\u000e-\u001d0P7!Rz7&\u0013%9O\u007f=hC >Ev+;Z<6\u0006v5)Z>qKv+;R54\u001c3#xN \u001d:A=#\u0006c*'P7\"Uz6/\u0013 4Wf=;Gr<C`+)T7 \u001d:A=#\u0006c*'P7\"Uz6/\u0013 4Wf=;Gr<C`+)T77\u001e'F<5\u0006v5)Z>qNv9,V qR|x=@7q@|*h`\u001d\u0010vR;<Z=?\u0006e9$F7k\u0006r;<Z=?\u001b\"\u001d:A=#\u0006c*'P7\"Uz6/\u0013:0Tw/!A75\u0006`=:E;2C\u0019\n-B'4Ugx%V!\"Gt=hG=>\u0006\u007f9:T7\u001a\u000b8A;?A3\u001b']&4^gx!@r#Cb-!A75Q\u0016'\u0013 4Uc7&@7qBr,)\u00133'Gz4)Q>4\u0006r6,\u0013!%Cr4<[r<Iw=hZ!qUv,f\u0013\u001c>R3+-]68Htx:V!!I}+-\u0013?4U`9/V|";
      int var4 = "\u001b$Z7?R1\n-B'4Ugx:V44Ta=,\u0013&>\u0006r6h\\'%Br,-Wr'Ca+!\\<qIux8\\>8Ej\u0014\u0016'\u0013 4Uc7&@7qTv;-Z$4BL\b'_;2_3*-G'#Hv<hV #Iax)]6qUg=)_&9\u0006~7,Vr8U3+-G|qh|,h@7?Bz6/\u0013 4Uc7&@7qKv+;R54\b\f+-A$4TP7&U;6\u001a\b'_;2_3*-@'=Rv<hZ<qUg9<F!q\u001d5-@!0Av\b:\\14U`1&T\u0017'C},\u000b[3?Hv4\u0006\u000b-A$4T\u0013+<R!9kr6)T7#`r;<\\ (\u0006\u001b$Z7?R\u00069+G;>H;\u001e'F<5\u0006v5)Z>qNv9,V qR|x=@7q@|*h`\u001d\u0010vR;<Z=?\u0006e9$F7k\u0006@\u0017\tc\u00132Rz7&\u000e-\u001d0P7!Rz7&\u0013%9O\u007f=hC >Ev+;Z<6\u0006v5)Z>qKv+;R54\u001c3#xN \u001d:A=#\u0006c*'P7\"Uz6/\u0013 4Wf=;Gr<C`+)T7 \u001d:A=#\u0006c*'P7\"Uz6/\u0013 4Wf=;Gr<C`+)T77\u001e'F<5\u0006v5)Z>qNv9,V qR|x=@7q@|*h`\u001d\u0010vR;<Z=?\u0006e9$F7k\u0006r;<Z=?\u001b\"\u001d:A=#\u0006c*'P7\"Uz6/\u0013:0Tw/!A75\u0006`=:E;2C\u0019\n-B'4Ugx%V!\"Gt=hG=>\u0006\u007f9:T7\u001a\u000b8A;?A3\u001b']&4^gx!@r#Cb-!A75Q\u0016'\u0013 4Uc7&@7qBr,)\u00133'Gz4)Q>4\u0006r6,\u0013!%Cr4<[r<Iw=hZ!qUv,f\u0013\u001c>R3+-]68Htx:V!!I}+-\u0013?4U`9/V|"
         .length();
      char var1 = 6;
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 125;
         String var10001 = var2.substring(++var7, var7 + var1);
         byte var10002 = -1;

         while (true) {
            String var8 = a(var10000, a(var10001));
            switch (var10002) {
               case 0:
                  var5[var3++] = var8;
                  if ((var7 += var1) >= var4) {
                     f = var5;
                     e = Logger.getLogger(EmailHandlerImpl.class.getName());
                     return;
                  }

                  var1 = var2.charAt(var7);
                  break;
               default:
                  var5[var3++] = var8;
                  if ((var7 += var1) < var4) {
                     var1 = var2.charAt(var7);
                     continue label24;
                  }

                  var2 = ">&K*;J}\u00031W:?^k<1\u0016:,}4;Dt\u001e&K*;J}\u001e\"@\u001b#Y} ";
                  var4 = ">&K*;J}\u00031W:?^k<1\u0016:,}4;Dt\u001e&K*;J}\u001e\"@\u001b#Y} ".length();
                  var1 = 16;
                  var7 = -1;
            }

            var10000 = 118;
            var10001 = var2.substring(++var7, var7 + var1);
            var10002 = 0;
         }
      }
   }

   private static IOException a(IOException var0) {
      return var0;
   }

   private static char[] a(String var0) {
      char[] var10000 = var0.toCharArray();
      if (var10000.length < 2) {
         var10000[0] = (char)(var10000[0] ^ 110);
      }

      return var10000;
   }

   private static String a(int var0, char[] var1) {
      int var10003 = var1.length;
      int var10002 = var0;
      char[] var10001 = var1;
      int var10000 = var10003;

      for (int var2 = 0; var10000 > var2; var2++) {
         var10001[var2] = (char)(var10001[var2] ^ var10002 ^ switch (var2 % 7) {
            case 0 -> 37;
            case 1 -> 53;
            case 2 -> 78;
            case 3 -> 47;
            case 4 -> 44;
            case 5 -> 91;
            default -> 110;
         });
      }

      return new String(var10001).intern();
   }
}
