package com.l7tech.external.assertions.gatewaymanagement.server.rest.exceptions;

import com.l7tech.gateway.api.ErrorResponse;
import com.l7tech.gateway.common.security.rbac.PermissionDeniedException;
import com.l7tech.util.Pair;
import jakarta.ws.rs.core.Context;
import jakarta.ws.rs.core.Request;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.UriInfo;
import jakarta.ws.rs.core.Response.StatusType;
import jakarta.ws.rs.ext.Provider;
import java.util.logging.Logger;

@Provider
public class ExceptionMapper implements jakarta.ws.rs.ext.ExceptionMapper<Exception> {
   private static final Logger a;
   @Context
   protected UriInfo uriInfo;
   @Context
   Request b;
   private static final String[] c;

   public Response toResponse(Exception var1) {
      Pair var2 = this.a(var1);
      return Response.status((StatusType)var2.getKey()).entity(var2.getValue()).build();
   }

   private Pair<StatusType, ErrorResponse> a(Throwable param1) {
      // $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/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 003: getstatic java/util/logging/Level.FINEST Ljava/util/logging/Level;
      // 006: ldc ""
      // 008: aload 1
      // 009: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 00c: getstatic jakarta/ws/rs/core/Response$Status.INTERNAL_SERVER_ERROR Ljakarta/ws/rs/core/Response$Status;
      // 00f: astore 2
      // 010: invokestatic com/l7tech/gateway/api/ManagedObjectFactory.createErrorResponse ()Lcom/l7tech/gateway/api/ErrorResponse;
      // 013: astore 3
      // 014: aload 3
      // 015: aload 1
      // 016: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 019: invokevirtual com/l7tech/gateway/api/ErrorResponse.setDetail (Ljava/lang/String;)V
      // 01c: aload 3
      // 01d: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 020: astore 7
      // 022: aload 7
      // 024: bipush 5
      // 025: aaload
      // 026: aload 0
      // 027: getfield com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.uriInfo Ljakarta/ws/rs/core/UriInfo;
      // 02a: invokeinterface jakarta/ws/rs/core/UriInfo.getRequestUri ()Ljava/net/URI; 1
      // 02f: invokevirtual java/net/URI.toString ()Ljava/lang/String;
      // 032: invokestatic com/l7tech/gateway/api/ManagedObjectFactory.createLink (Ljava/lang/String;Ljava/lang/String;)Lcom/l7tech/gateway/api/Link;
      // 035: invokevirtual com/l7tech/gateway/api/ErrorResponse.setLink (Lcom/l7tech/gateway/api/Link;)V
      // 038: aload 3
      // 039: aload 1
      // 03a: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 03d: invokevirtual java/lang/Class.getSimpleName ()Ljava/lang/String;
      // 040: aload 7
      // 042: bipush 8
      // 044: aaload
      // 045: ldc ""
      // 047: invokevirtual java/lang/String.replace (Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
      // 04a: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 04d: aload 1
      // 04e: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 051: aload 7
      // 053: bipush 4
      // 054: aaload
      // 055: swap
      // 056: 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" ]
      // 05b: astore 4
      // 05d: aload 1
      // 05e: instanceof com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceSelectors
      // 061: ifeq 06b
      // 064: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 067: astore 2
      // 068: goto 592
      // 06b: aload 1
      // 06c: instanceof com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceNotFoundException
      // 06f: ifeq 079
      // 072: getstatic jakarta/ws/rs/core/Response$Status.NOT_FOUND Ljakarta/ws/rs/core/Response$Status;
      // 075: astore 2
      // 076: goto 592
      // 079: aload 1
      // 07a: instanceof com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 07d: ifeq 087
      // 080: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 083: astore 2
      // 084: goto 592
      // 087: aload 1
      // 088: instanceof com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // 08b: ifne 09c
      // 08e: aload 1
      // 08f: instanceof com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InsufficientPermissionsException
      // 092: ifeq 147
      // 095: goto 09c
      // 098: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a (Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;)Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;
      // 09b: athrow
      // 09c: aload 1
      // 09d: instanceof com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InsufficientPermissionsException
      // 0a0: ifeq 0b5
      // 0a3: goto 0aa
      // 0a6: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a (Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;)Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;
      // 0a9: athrow
      // 0aa: aload 1
      // 0ab: checkcast com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InsufficientPermissionsException
      // 0ae: goto 0f1
      // 0b1: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a (Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;)Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;
      // 0b4: athrow
      // 0b5: aload 1
      // 0b6: checkcast com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // 0b9: invokevirtual com/l7tech/gateway/common/security/rbac/PermissionDeniedException.getEntity ()Lcom/l7tech/objectmodel/Entity;
      // 0bc: ifnull 0e6
      // 0bf: new com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InsufficientPermissionsException
      // 0c2: dup
      // 0c3: invokestatic com/l7tech/server/util/JaasUtils.getCurrentUser ()Lcom/l7tech/identity/User;
      // 0c6: aload 1
      // 0c7: checkcast com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // 0ca: invokevirtual com/l7tech/gateway/common/security/rbac/PermissionDeniedException.getEntity ()Lcom/l7tech/objectmodel/Entity;
      // 0cd: aload 1
      // 0ce: checkcast com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // 0d1: invokevirtual com/l7tech/gateway/common/security/rbac/PermissionDeniedException.getOperation ()Lcom/l7tech/gateway/common/security/rbac/OperationType;
      // 0d4: aload 1
      // 0d5: checkcast com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // 0d8: invokevirtual com/l7tech/gateway/common/security/rbac/PermissionDeniedException.getOtherOperationName ()Ljava/lang/String;
      // 0db: aload 1
      // 0dc: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InsufficientPermissionsException.<init> (Lcom/l7tech/identity/User;Lcom/l7tech/objectmodel/Entity;Lcom/l7tech/gateway/common/security/rbac/OperationType;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 0df: goto 0f1
      // 0e2: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a (Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;)Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;
      // 0e5: athrow
      // 0e6: new com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InsufficientPermissionsException
      // 0e9: dup
      // 0ea: invokestatic com/l7tech/server/util/JaasUtils.getCurrentUser ()Lcom/l7tech/identity/User;
      // 0ed: aload 1
      // 0ee: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InsufficientPermissionsException.<init> (Lcom/l7tech/identity/User;Ljava/lang/Throwable;)V
      // 0f1: astore 5
      // 0f3: invokestatic com/l7tech/server/util/JaasUtils.getCurrentUser ()Lcom/l7tech/identity/User;
      // 0f6: ifnonnull 106
      // 0f9: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 0fc: bipush 9
      // 0fe: aaload
      // 0ff: goto 10e
      // 102: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a (Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;)Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;
      // 105: athrow
      // 106: invokestatic com/l7tech/server/util/JaasUtils.getCurrentUser ()Lcom/l7tech/identity/User;
      // 109: invokeinterface com/l7tech/identity/User.getLogin ()Ljava/lang/String; 1
      // 10e: astore 6
      // 110: aload 5
      // 112: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 115: aload 6
      // 117: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 11a: astore 7
      // 11c: aload 7
      // 11e: bipush 11
      // 120: aaload
      // 121: swap
      // 122: aload 7
      // 124: bipush 24
      // 126: aaload
      // 127: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;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\u0001\u0001" ]
      // 12c: astore 4
      // 12e: aload 3
      // 12f: aload 7
      // 131: bipush 18
      // 133: aaload
      // 134: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 137: aload 3
      // 138: aload 5
      // 13a: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 13d: invokevirtual com/l7tech/gateway/api/ErrorResponse.setDetail (Ljava/lang/String;)V
      // 140: getstatic jakarta/ws/rs/core/Response$Status.UNAUTHORIZED Ljakarta/ws/rs/core/Response$Status;
      // 143: astore 2
      // 144: goto 592
      // 147: aload 1
      // 148: instanceof com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$DuplicateResourceAccessException
      // 14b: ifeq 155
      // 14e: getstatic jakarta/ws/rs/core/Response$Status.FORBIDDEN Ljakarta/ws/rs/core/Response$Status;
      // 151: astore 2
      // 152: goto 592
      // 155: aload 1
      // 156: instanceof com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // 159: ifeq 36c
      // 15c: aload 1
      // 15d: ldc com/l7tech/objectmodel/DuplicateObjectException
      // 15f: invokestatic com/l7tech/util/ExceptionUtils.causedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Z
      // 162: ifeq 198
      // 165: goto 16c
      // 168: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a (Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;)Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;
      // 16b: athrow
      // 16c: aload 1
      // 16d: ldc com/l7tech/objectmodel/DuplicateObjectException
      // 16f: invokestatic com/l7tech/util/ExceptionUtils.getCauseIfCausedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Ljava/lang/Throwable;
      // 172: checkcast com/l7tech/objectmodel/DuplicateObjectException
      // 175: astore 5
      // 177: aload 3
      // 178: aload 5
      // 17a: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 17d: invokevirtual java/lang/Class.getSimpleName ()Ljava/lang/String;
      // 180: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 183: astore 7
      // 185: aload 7
      // 187: bipush 0
      // 188: aaload
      // 189: ldc ""
      // 18b: invokevirtual java/lang/String.replace (Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
      // 18e: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 191: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 194: astore 2
      // 195: goto 592
      // 198: aload 1
      // 199: ldc com/l7tech/objectmodel/StaleUpdateException
      // 19b: invokestatic com/l7tech/util/ExceptionUtils.causedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Z
      // 19e: ifeq 1cd
      // 1a1: aload 1
      // 1a2: ldc com/l7tech/objectmodel/StaleUpdateException
      // 1a4: invokestatic com/l7tech/util/ExceptionUtils.getCauseIfCausedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Ljava/lang/Throwable;
      // 1a7: checkcast com/l7tech/objectmodel/StaleUpdateException
      // 1aa: astore 5
      // 1ac: aload 3
      // 1ad: aload 5
      // 1af: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 1b2: invokevirtual java/lang/Class.getSimpleName ()Ljava/lang/String;
      // 1b5: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 1b8: astore 7
      // 1ba: aload 7
      // 1bc: bipush 0
      // 1bd: aaload
      // 1be: ldc ""
      // 1c0: invokevirtual java/lang/String.replace (Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
      // 1c3: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 1c6: getstatic jakarta/ws/rs/core/Response$Status.FORBIDDEN Ljakarta/ws/rs/core/Response$Status;
      // 1c9: astore 2
      // 1ca: goto 592
      // 1cd: aload 1
      // 1ce: ldc com/l7tech/policy/PolicyDeletionForbiddenException
      // 1d0: invokestatic com/l7tech/util/ExceptionUtils.causedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Z
      // 1d3: ifeq 202
      // 1d6: aload 1
      // 1d7: ldc com/l7tech/policy/PolicyDeletionForbiddenException
      // 1d9: invokestatic com/l7tech/util/ExceptionUtils.getCauseIfCausedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Ljava/lang/Throwable;
      // 1dc: checkcast com/l7tech/policy/PolicyDeletionForbiddenException
      // 1df: astore 5
      // 1e1: aload 3
      // 1e2: aload 5
      // 1e4: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 1e7: invokevirtual java/lang/Class.getSimpleName ()Ljava/lang/String;
      // 1ea: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 1ed: astore 7
      // 1ef: aload 7
      // 1f1: bipush 0
      // 1f2: aaload
      // 1f3: ldc ""
      // 1f5: invokevirtual java/lang/String.replace (Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
      // 1f8: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 1fb: getstatic jakarta/ws/rs/core/Response$Status.FORBIDDEN Ljakarta/ws/rs/core/Response$Status;
      // 1fe: astore 2
      // 1ff: goto 592
      // 202: aload 1
      // 203: ldc org/springframework/dao/DataIntegrityViolationException
      // 205: invokestatic com/l7tech/util/ExceptionUtils.causedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Z
      // 208: ifeq 290
      // 20b: aload 1
      // 20c: ldc org/springframework/dao/DataIntegrityViolationException
      // 20e: invokestatic com/l7tech/util/ExceptionUtils.getCauseIfCausedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Ljava/lang/Throwable;
      // 211: checkcast org/springframework/dao/DataIntegrityViolationException
      // 214: astore 5
      // 216: aload 5
      // 218: invokevirtual org/springframework/dao/DataIntegrityViolationException.getCause ()Ljava/lang/Throwable;
      // 21b: instanceof org/hibernate/exception/ConstraintViolationException
      // 21e: ifeq 251
      // 221: aload 5
      // 223: invokevirtual org/springframework/dao/DataIntegrityViolationException.getCause ()Ljava/lang/Throwable;
      // 226: checkcast org/hibernate/exception/ConstraintViolationException
      // 229: astore 6
      // 22b: aload 3
      // 22c: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 22f: astore 7
      // 231: aload 7
      // 233: bipush 14
      // 235: aaload
      // 236: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 239: aload 3
      // 23a: aload 6
      // 23c: invokevirtual org/hibernate/exception/ConstraintViolationException.getSQLException ()Ljava/sql/SQLException;
      // 23f: aload 6
      // 241: invokevirtual org/hibernate/exception/ConstraintViolationException.getMessage ()Ljava/lang/String;
      // 244: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;Ljava/lang/String;)Ljava/lang/String;
      // 247: invokevirtual com/l7tech/gateway/api/ErrorResponse.setDetail (Ljava/lang/String;)V
      // 24a: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 24d: astore 2
      // 24e: goto 28d
      // 251: aload 3
      // 252: aload 5
      // 254: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 257: invokevirtual java/lang/Class.getSimpleName ()Ljava/lang/String;
      // 25a: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 25d: astore 7
      // 25f: aload 7
      // 261: bipush 0
      // 262: aaload
      // 263: ldc ""
      // 265: invokevirtual java/lang/String.replace (Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
      // 268: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 26b: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 26e: getstatic java/util/logging/Level.INFO Ljava/util/logging/Level;
      // 271: aload 5
      // 273: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 276: aload 7
      // 278: bipush 1
      // 279: aaload
      // 27a: swap
      // 27b: ldc "'"
      // 27d: invokedynamic makeConcatWithConstants (Ljava/lang/String;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\u0001" ]
      // 282: aload 1
      // 283: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 286: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 289: getstatic jakarta/ws/rs/core/Response$Status.FORBIDDEN Ljakarta/ws/rs/core/Response$Status;
      // 28c: astore 2
      // 28d: goto 592
      // 290: aload 1
      // 291: ldc org/xml/sax/SAXException
      // 293: invokestatic com/l7tech/util/ExceptionUtils.causedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Z
      // 296: ifeq 2bd
      // 299: aload 1
      // 29a: ldc org/xml/sax/SAXException
      // 29c: invokestatic com/l7tech/util/ExceptionUtils.getCauseIfCausedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Ljava/lang/Throwable;
      // 29f: checkcast org/xml/sax/SAXException
      // 2a2: astore 5
      // 2a4: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 2a7: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 2aa: aload 5
      // 2ac: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 2af: aload 1
      // 2b0: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 2b3: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 2b6: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 2b9: astore 2
      // 2ba: goto 592
      // 2bd: aload 1
      // 2be: ldc java/lang/IllegalArgumentException
      // 2c0: invokestatic com/l7tech/util/ExceptionUtils.causedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Z
      // 2c3: ifeq 301
      // 2c6: aload 1
      // 2c7: ldc java/lang/IllegalArgumentException
      // 2c9: invokestatic com/l7tech/util/ExceptionUtils.getCauseIfCausedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Ljava/lang/Throwable;
      // 2cc: checkcast java/lang/IllegalArgumentException
      // 2cf: astore 5
      // 2d1: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 2d4: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 2d7: aload 5
      // 2d9: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 2dc: aload 1
      // 2dd: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 2e0: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 2e3: aload 3
      // 2e4: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 2e7: astore 7
      // 2e9: aload 7
      // 2eb: bipush 21
      // 2ed: aaload
      // 2ee: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 2f1: aload 3
      // 2f2: aload 5
      // 2f4: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 2f7: invokevirtual com/l7tech/gateway/api/ErrorResponse.setDetail (Ljava/lang/String;)V
      // 2fa: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 2fd: astore 2
      // 2fe: goto 592
      // 301: aload 1
      // 302: ldc com/l7tech/common/io/DuplicateAliasException
      // 304: invokestatic com/l7tech/util/ExceptionUtils.causedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Z
      // 307: ifeq 344
      // 30a: aload 1
      // 30b: ldc com/l7tech/common/io/DuplicateAliasException
      // 30d: invokestatic com/l7tech/util/ExceptionUtils.getCauseIfCausedBy (Ljava/lang/Throwable;Ljava/lang/Class;)Ljava/lang/Throwable;
      // 310: checkcast com/l7tech/common/io/DuplicateAliasException
      // 313: astore 5
      // 315: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 318: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 31b: aload 5
      // 31d: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 320: aload 1
      // 321: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 324: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 327: aload 3
      // 328: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 32b: astore 7
      // 32d: aload 7
      // 32f: bipush 3
      // 330: aaload
      // 331: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 334: aload 3
      // 335: aload 5
      // 337: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 33a: invokevirtual com/l7tech/gateway/api/ErrorResponse.setDetail (Ljava/lang/String;)V
      // 33d: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 340: astore 2
      // 341: goto 592
      // 344: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 347: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 34a: aload 1
      // 34b: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 34e: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 351: astore 7
      // 353: aload 7
      // 355: bipush 13
      // 357: aaload
      // 358: swap
      // 359: 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" ]
      // 35e: aload 1
      // 35f: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 362: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 365: getstatic jakarta/ws/rs/core/Response$Status.FORBIDDEN Ljakarta/ws/rs/core/Response$Status;
      // 368: astore 2
      // 369: goto 592
      // 36c: aload 1
      // 36d: instanceof org/springframework/dao/DataIntegrityViolationException
      // 370: ifeq 3f4
      // 373: aload 1
      // 374: checkcast org/springframework/dao/DataIntegrityViolationException
      // 377: astore 5
      // 379: aload 5
      // 37b: invokevirtual org/springframework/dao/DataIntegrityViolationException.getCause ()Ljava/lang/Throwable;
      // 37e: instanceof org/hibernate/exception/ConstraintViolationException
      // 381: ifeq 3b4
      // 384: aload 5
      // 386: invokevirtual org/springframework/dao/DataIntegrityViolationException.getCause ()Ljava/lang/Throwable;
      // 389: checkcast org/hibernate/exception/ConstraintViolationException
      // 38c: astore 6
      // 38e: aload 3
      // 38f: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 392: astore 7
      // 394: aload 7
      // 396: bipush 20
      // 398: aaload
      // 399: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 39c: aload 3
      // 39d: aload 6
      // 39f: invokevirtual org/hibernate/exception/ConstraintViolationException.getSQLException ()Ljava/sql/SQLException;
      // 3a2: aload 6
      // 3a4: invokevirtual org/hibernate/exception/ConstraintViolationException.getMessage ()Ljava/lang/String;
      // 3a7: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;Ljava/lang/String;)Ljava/lang/String;
      // 3aa: invokevirtual com/l7tech/gateway/api/ErrorResponse.setDetail (Ljava/lang/String;)V
      // 3ad: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 3b0: astore 2
      // 3b1: goto 3f1
      // 3b4: aload 3
      // 3b5: aload 5
      // 3b7: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 3ba: invokevirtual java/lang/Class.getSimpleName ()Ljava/lang/String;
      // 3bd: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 3c0: astore 7
      // 3c2: aload 7
      // 3c4: bipush 0
      // 3c5: aaload
      // 3c6: ldc ""
      // 3c8: invokevirtual java/lang/String.replace (Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
      // 3cb: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 3ce: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 3d1: getstatic java/util/logging/Level.INFO Ljava/util/logging/Level;
      // 3d4: aload 5
      // 3d6: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 3d9: aload 7
      // 3db: bipush 15
      // 3dd: aaload
      // 3de: swap
      // 3df: ldc "'"
      // 3e1: invokedynamic makeConcatWithConstants (Ljava/lang/String;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\u0001" ]
      // 3e6: aload 1
      // 3e7: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 3ea: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 3ed: getstatic jakarta/ws/rs/core/Response$Status.FORBIDDEN Ljakarta/ws/rs/core/Response$Status;
      // 3f0: astore 2
      // 3f1: goto 592
      // 3f4: aload 1
      // 3f5: instanceof com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InvalidArgumentException
      // 3f8: ifeq 46b
      // 3fb: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 3fe: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 401: aload 1
      // 402: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 405: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 408: astore 7
      // 40a: aload 7
      // 40c: bipush 2
      // 40d: aaload
      // 40e: swap
      // 40f: 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" ]
      // 414: aload 1
      // 415: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 418: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 41b: aload 1
      // 41c: checkcast com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InvalidArgumentException
      // 41f: astore 5
      // 421: aload 3
      // 422: aload 5
      // 424: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InvalidArgumentException.getArgumentName ()Ljava/lang/String;
      // 427: ifnull 443
      // 42a: aload 5
      // 42c: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InvalidArgumentException.getArgumentName ()Ljava/lang/String;
      // 42f: aload 7
      // 431: bipush 16
      // 433: aaload
      // 434: swap
      // 435: ldc "'"
      // 437: invokedynamic makeConcatWithConstants (Ljava/lang/String;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\u0001" ]
      // 43c: goto 445
      // 43f: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a (Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;)Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;
      // 442: athrow
      // 443: ldc ""
      // 445: aload 5
      // 447: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/InvalidArgumentException.getMessage ()Ljava/lang/String;
      // 44a: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 44d: astore 7
      // 44f: aload 7
      // 451: bipush 22
      // 453: aaload
      // 454: dup_x2
      // 455: pop
      // 456: aload 7
      // 458: bipush 12
      // 45a: aaload
      // 45b: swap
      // 45c: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;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\u0001\u0001" ]
      // 461: invokevirtual com/l7tech/gateway/api/ErrorResponse.setDetail (Ljava/lang/String;)V
      // 464: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 467: astore 2
      // 468: goto 592
      // 46b: aload 1
      // 46c: instanceof java/lang/IllegalArgumentException
      // 46f: ifeq 492
      // 472: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 475: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 478: aload 1
      // 479: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 47c: aload 1
      // 47d: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 480: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 483: aload 3
      // 484: aload 1
      // 485: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 488: invokevirtual com/l7tech/gateway/api/ErrorResponse.setDetail (Ljava/lang/String;)V
      // 48b: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 48e: astore 2
      // 48f: goto 592
      // 492: aload 1
      // 493: instanceof org/glassfish/jersey/server/ParamException$QueryParamException
      // 496: ifeq 50c
      // 499: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 49c: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 49f: aload 1
      // 4a0: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 4a3: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 4a6: astore 7
      // 4a8: aload 7
      // 4aa: bipush 7
      // 4ac: aaload
      // 4ad: swap
      // 4ae: 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" ]
      // 4b3: aload 1
      // 4b4: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 4b7: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 4ba: aload 1
      // 4bb: checkcast org/glassfish/jersey/server/ParamException$QueryParamException
      // 4be: astore 5
      // 4c0: aload 3
      // 4c1: aload 5
      // 4c3: invokevirtual org/glassfish/jersey/server/ParamException$QueryParamException.getParameterName ()Ljava/lang/String;
      // 4c6: aload 5
      // 4c8: invokevirtual org/glassfish/jersey/server/ParamException$QueryParamException.getCause ()Ljava/lang/Throwable;
      // 4cb: ifnull 4dd
      // 4ce: aload 5
      // 4d0: invokevirtual org/glassfish/jersey/server/ParamException$QueryParamException.getCause ()Ljava/lang/Throwable;
      // 4d3: invokevirtual java/lang/Throwable.getMessage ()Ljava/lang/String;
      // 4d6: goto 4e2
      // 4d9: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a (Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;)Lcom/l7tech/gateway/common/security/rbac/PermissionDeniedException;
      // 4dc: athrow
      // 4dd: aload 5
      // 4df: invokevirtual org/glassfish/jersey/server/ParamException$QueryParamException.getMessage ()Ljava/lang/String;
      // 4e2: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 4e5: astore 7
      // 4e7: aload 7
      // 4e9: bipush 17
      // 4eb: aaload
      // 4ec: dup_x2
      // 4ed: pop
      // 4ee: aload 7
      // 4f0: bipush 23
      // 4f2: aaload
      // 4f3: swap
      // 4f4: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;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\u0001\u0001" ]
      // 4f9: invokevirtual com/l7tech/gateway/api/ErrorResponse.setDetail (Ljava/lang/String;)V
      // 4fc: aload 3
      // 4fd: aload 7
      // 4ff: bipush 6
      // 501: aaload
      // 502: invokevirtual com/l7tech/gateway/api/ErrorResponse.setType (Ljava/lang/String;)V
      // 505: getstatic jakarta/ws/rs/core/Response$Status.BAD_REQUEST Ljakarta/ws/rs/core/Response$Status;
      // 508: astore 2
      // 509: goto 592
      // 50c: aload 1
      // 50d: instanceof jakarta/ws/rs/WebApplicationException
      // 510: ifeq 546
      // 513: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 516: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 519: aload 1
      // 51a: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 51d: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 520: astore 7
      // 522: aload 7
      // 524: bipush 25
      // 526: aaload
      // 527: swap
      // 528: 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" ]
      // 52d: aload 1
      // 52e: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 531: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 534: aload 1
      // 535: checkcast jakarta/ws/rs/WebApplicationException
      // 538: astore 5
      // 53a: aload 5
      // 53c: invokevirtual jakarta/ws/rs/WebApplicationException.getResponse ()Ljakarta/ws/rs/core/Response;
      // 53f: invokevirtual jakarta/ws/rs/core/Response.getStatusInfo ()Ljakarta/ws/rs/core/Response$StatusType;
      // 542: astore 2
      // 543: goto 592
      // 546: aload 1
      // 547: instanceof com/l7tech/objectmodel/ObjectNotFoundException
      // 54a: ifeq 575
      // 54d: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 550: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 553: aload 1
      // 554: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 557: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 55a: astore 7
      // 55c: aload 7
      // 55e: bipush 19
      // 560: aaload
      // 561: swap
      // 562: 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" ]
      // 567: aload 1
      // 568: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 56b: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 56e: getstatic jakarta/ws/rs/core/Response$Status.NOT_FOUND Ljakarta/ws/rs/core/Response$Status;
      // 571: astore 2
      // 572: goto 592
      // 575: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 578: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 57b: aload 1
      // 57c: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 57f: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.c [Ljava/lang/String;
      // 582: bipush 10
      // 584: aaload
      // 585: swap
      // 586: 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" ]
      // 58b: aload 1
      // 58c: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 58f: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 592: getstatic com/l7tech/external/assertions/gatewaymanagement/server/rest/exceptions/ExceptionMapper.a Ljava/util/logging/Logger;
      // 595: getstatic java/util/logging/Level.INFO Ljava/util/logging/Level;
      // 598: aload 4
      // 59a: aload 1
      // 59b: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 59e: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 5a1: new com/l7tech/util/Pair
      // 5a4: dup
      // 5a5: aload 2
      // 5a6: aload 3
      // 5a7: invokespecial com/l7tech/util/Pair.<init> (Ljava/lang/Object;Ljava/lang/Object;)V
      // 5aa: areturn
      // try (61 -> 67): 68 com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // try (64 -> 73): 74 com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // try (70 -> 79): 79 com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // try (81 -> 100): 100 com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // try (108 -> 114): 114 com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // try (151 -> 158): 159 com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // try (466 -> 479): 479 com/l7tech/gateway/common/security/rbac/PermissionDeniedException
      // try (537 -> 547): 547 com/l7tech/gateway/common/security/rbac/PermissionDeniedException
   }

   static {
      String[] var5 = new String[26];
      int var3 = 0;
      String var2 = "}^E/`Y7WH\u001fjCU%e_=]\u0006I:u_?LOI$0K1JDO.tH0\u0014\u0006\u0001>qHP+|D:yTA?}H0Lc^)u]*QIHju_,WT\u0006:bB=]UU#~J~UGH+wH3]HRjbH/MCU>*\r\u000fqHP+|D:jCU%e_=]$}TT%b\r.JIE/c^7VA\u0006'qC?_CK/~Y~JCW?u^*\u0002\u0004KCJ,\u0011qHP+|D:iSC8i}?JGK9iSC8i}?JGK\u000fhN;HRO%~\r;JTI80],WEC9cD0_\u0006K+~L9]KC$d\r,]WS/cYd\u0018\t}^E/`Y7WH\u0011\u0004SH+eY6]HR#sL*]B\u0018%}TT%b\r.JIE/c^7VA\u0006'qC?_CK/~Y~JCW?u^*\u0002\u0006\f\u0014\u0006@%b\r+KCTj7\u0002\u0016\u00065jCU%e_=]\u0006G)sH-K\u0006C8bB,\u0018VT%sH-KOH-0@?VGA/}H0L\u0006T/aX;KR\u001cj\u0013{IH9d_?QHR\u001cyB2YRO%~\u001fjCU%e_=]\u0006I:u_?LOI$0K1JDO.tH0\u0014\u0006\u0001\u0002\u0018\u0001#qHP+|D:\u0018PG&eH~^ITjaX;J_\u0006:q_?UCR/b\ry\u0010hCT'y^-QIH\u000euC7]B\u0014jCU%e_=]\u0006H%d\r8WSH.*\r\u0013{IH9d_?QHR\u001cyB2YRO%~\u000fqHP+|D:jCU%e_=]\u001aqHP+|D:\u0018PG&eH~^ITjq_9MKC$d\u0003\u001f\b\u0006";
      int var4 = "}^E/`Y7WH\u001fjCU%e_=]\u0006I:u_?LOI$0K1JDO.tH0\u0014\u0006\u0001>qHP+|D:yTA?}H0Lc^)u]*QIHju_,WT\u0006:bB=]UU#~J~UGH+wH3]HRjbH/MCU>*\r\u000fqHP+|D:jCU%e_=]$}TT%b\r.JIE/c^7VA\u0006'qC?_CK/~Y~JCW?u^*\u0002\u0004KCJ,\u0011qHP+|D:iSC8i}?JGK9iSC8i}?JGK\u000fhN;HRO%~\r;JTI80],WEC9cD0_\u0006K+~L9]KC$d\r,]WS/cYd\u0018\t}^E/`Y7WH\u0011\u0004SH+eY6]HR#sL*]B\u0018%}TT%b\r.JIE/c^7VA\u0006'qC?_CK/~Y~JCW?u^*\u0002\u0006\f\u0014\u0006@%b\r+KCTj7\u0002\u0016\u00065jCU%e_=]\u0006G)sH-K\u0006C8bB,\u0018VT%sH-KOH-0@?VGA/}H0L\u0006T/aX;KR\u001cj\u0013{IH9d_?QHR\u001cyB2YRO%~\u001fjCU%e_=]\u0006I:u_?LOI$0K1JDO.tH0\u0014\u0006\u0001\u0002\u0018\u0001#qHP+|D:\u0018PG&eH~^ITjaX;J_\u0006:q_?UCR/b\ry\u0010hCT'y^-QIH\u000euC7]B\u0014jCU%e_=]\u0006H%d\r8WSH.*\r\u0013{IH9d_?QHR\u001cyB2YRO%~\u000fqHP+|D:jCU%e_=]\u001aqHP+|D:\u0018PG&eH~^ITjq_9MKC$d\u0003\u001f\b\u0006"
         .length();
      char var1 = '\t';
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 13;
         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) {
                     c = var5;
                     a = Logger.getLogger(ExceptionMapper.class.getName());
                     return;
                  }

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

                  var2 = "\f\u001b5yPF6vL.N\u0015T:`[>X\u0015P+qQ?\u000bEG6`[>X\\[>#S,ETR<n[#_\u0015G<rK(XA\u000fy";
                  var4 = "\f\u001b5yPF6vL.N\u0015T:`[>X\u0015P+qQ?\u000bEG6`[>X\\[>#S,ETR<n[#_\u0015G<rK(XA\u000fy".length();
                  var1 = 2;
                  var7 = -1;
            }

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

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

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

      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 -> 53;
            case 1 -> 43;
            case 2 -> 43;
            case 3 -> 71;
            case 4 -> 29;
            case 5 -> 32;
            default -> 83;
         });
      }

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