package com.l7tech.external.assertions.gatewaygraphql.server.resolver.mutation;

import com.l7tech.external.assertions.gatewaygraphql.EntityTypeInfo;
import com.l7tech.external.assertions.gatewaygraphql.server.data.EntityMappingInstruction;
import com.l7tech.external.assertions.gatewaygraphql.server.data.L7ServiceAliasDTO;
import com.l7tech.external.assertions.gatewaygraphql.server.resolver.entityref.EntityRefResolver;
import com.l7tech.external.assertions.gatewaygraphql.server.resolver.entityref.EntityRefUtil;
import com.l7tech.gateway.common.service.PublishedService;
import com.l7tech.gateway.common.service.PublishedServiceAlias;
import com.l7tech.objectmodel.AliasHeader;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.server.service.ServiceAliasManager;
import graphql.schema.DataFetchingEnvironment;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;
import java.util.logging.Logger;
import lombok.Generated;
import org.jetbrains.annotations.Nullable;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.transaction.PlatformTransactionManager;

public class L7ServiceAliasMutationResolver
   extends EntityManagerAwareGraphQLMutationResolver<PublishedServiceAlias, AliasHeader<PublishedService>, ServiceAliasManager, L7ServiceAliasDTO, L7ServiceAliasDTO.L7ServiceAliasInput> {
   @Generated
   private static final Logger b;
   private final AtomicReference<Object> c = new AtomicReference<>();
   private static final String[] d;

   public L7ServiceAliasMutationResolver(PlatformTransactionManager var1, BeanFactory var2) {
      super(EntityTypeInfo.SERVICE_ALIAS, var1, (ServiceAliasManager)var2.getBean(d[5], ServiceAliasManager.class));
   }

   @Override
   protected Logger getLogger() {
      return b;
   }

   public L7ServiceAliasDTO.L7ServiceAliasesPayload setServiceAliases(List<L7ServiceAliasDTO.L7ServiceAliasInput> var1, DataFetchingEnvironment var2) {
      L7ServiceAliasDTO.L7ServiceAliasesPayload var3 = new L7ServiceAliasDTO.L7ServiceAliasesPayload();

      try {
         this.transformNoDefEntityMappings(var1, var2);
         if (var1.isEmpty()) {
            return var3;
         }
      } catch (IllegalStateException var4) {
         throw b(var4);
      }

      return this.execute(var2, (var3x, var4x) -> {
         var1.forEach(var4xx -> this.doUpsertSilently(var4xx, var3x, var3, var4x));
         return var3;
      });
   }

   public L7ServiceAliasDTO.L7ServiceAliasPayload updateServiceAlias(
      L7ServiceAliasDTO.L7ServiceAliasRefInput var1, L7ServiceAliasDTO.L7ServiceAliasInput var2, DataFetchingEnvironment var3
   ) {
      return this.execute(var3, (var3x, var4) -> {
         L7ServiceAliasDTO.L7ServiceAliasPayload var5 = new L7ServiceAliasDTO.L7ServiceAliasPayload();
         var2.setRefInput(var1);
         this.doUpdateSilently(var2, var3x, var5, var4);
         return var5;
      });
   }

   @Deprecated
   public L7ServiceAliasDTO.L7ServiceAliasPayload deleteServiceAlias(L7ServiceAliasDTO.L7ServiceAliasRefInput var1, DataFetchingEnvironment var2) {
      return this.execute(var2, (var2x, var3) -> {
         L7ServiceAliasDTO.L7ServiceAliasPayload var4 = new L7ServiceAliasDTO.L7ServiceAliasPayload();
         L7ServiceAliasDTO.L7ServiceAliasInput var5 = this.a(var1);
         this.doDeleteSilently(var5, var2x, var4, var3);
         return var4;
      });
   }

   public L7ServiceAliasDTO.L7ServiceAliasesPayload deleteServiceAliases(List<L7ServiceAliasDTO.L7ServiceAliasRefInput> var1, DataFetchingEnvironment var2) {
      L7ServiceAliasDTO.L7ServiceAliasesPayload var3 = new L7ServiceAliasDTO.L7ServiceAliasesPayload();

      try {
         if (var1.isEmpty()) {
            return var3;
         }
      } catch (IllegalStateException var4) {
         throw b(var4);
      }

      return this.execute(var2, (var3x, var4x) -> {
         var1.forEach(var4xx -> this.doDeleteSilently(this.a(var4xx), var3x, var3, var4x));
         return var3;
      });
   }

   private L7ServiceAliasDTO.L7ServiceAliasInput a(L7ServiceAliasDTO.L7ServiceAliasRefInput var1) {
      L7ServiceAliasDTO.L7ServiceAliasInput var2 = new L7ServiceAliasDTO.L7ServiceAliasInput();
      var2.setName(var1.getName());
      var2.setFolderPath(var1.getFolderPath());
      var2.setRefInput(var1);
      return var2;
   }

   protected PublishedServiceAlias toEntity(L7ServiceAliasDTO.L7ServiceAliasInput var1) {
      try {
         if (var1.getService() == null) {
            throw new IllegalStateException(String.format(d[1], var1.getName()));
         }
      } catch (IllegalStateException var2) {
         throw b(var2);
      }

      return new PublishedServiceAlias(var1.getService(), this.getOrCreateFolderSafely(var1, var1.getFolderPath()));
   }

   protected L7ServiceAliasDTO toEntityDTO(PublishedServiceAlias var1) {
      return new L7ServiceAliasDTO(var1, this.a());
   }

   protected L7ServiceAliasDTO.L7ServiceAliasInput toEntityInput(EntityMappingInstruction var1) {
      L7ServiceAliasDTO.L7ServiceAliasInput var2 = new L7ServiceAliasDTO.L7ServiceAliasInput();
      var2.setName(var1.getIdentityValue());
      var2.setFolderPath(var1.getSourceString(d[2]));
      return var2;
   }

   protected Map<String, Object> toRawEntity(@Nullable L7ServiceAliasDTO.L7ServiceAliasInput var1) {
      Map var2 = super.toRawEntity(var1);

      try {
         if (var1 != null) {
            var2.put(d[6], var1.getFolderPath());
         }

         return var2;
      } catch (IllegalStateException var3) {
         throw b(var3);
      }
   }

   protected void setEntity(L7ServiceAliasDTO.L7ServiceAliasInput param1, PublishedServiceAlias param2) {
      // $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:
      // 00: aload 0
      // 01: aload 2
      // 02: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.isNewEntity (Lcom/l7tech/objectmodel/PersistentEntity;)Z
      // 05: ifne 31
      // 08: aload 2
      // 09: invokevirtual com/l7tech/gateway/common/service/PublishedServiceAlias.getFolder ()Lcom/l7tech/objectmodel/folder/Folder;
      // 0c: invokevirtual com/l7tech/objectmodel/folder/Folder.getPath ()Ljava/lang/String;
      // 0f: aload 1
      // 10: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasInput.getFolderPath ()Ljava/lang/String;
      // 13: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 16: ifeq 31
      // 19: goto 20
      // 1c: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 1f: athrow
      // 20: new com/l7tech/external/assertions/gatewaygraphql/server/error/NoMutationException
      // 23: dup
      // 24: getstatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.d [Ljava/lang/String;
      // 27: bipush 0
      // 28: aaload
      // 29: invokespecial com/l7tech/external/assertions/gatewaygraphql/server/error/NoMutationException.<init> (Ljava/lang/String;)V
      // 2c: athrow
      // 2d: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 30: athrow
      // 31: return
      // try (0 -> 11): 12 java/lang/IllegalStateException
      // try (4 -> 21): 21 java/lang/IllegalStateException
   }

   protected void setEntityConditionally(L7ServiceAliasDTO.L7ServiceAliasInput var1, PublishedServiceAlias var2) {
      try {
         if (var1.getFolderPath() != null) {
            var2.setFolder(this.getOrCreateFolderSafely(var1, var1.getFolderPath()));
         }
      } catch (IllegalStateException var3) {
         throw b(var3);
      }
   }

   protected void resetEntitySelectively(L7ServiceAliasDTO.L7ServiceAliasInput var1, PublishedServiceAlias var2) {
   }

   protected PublishedServiceAlias findByInput(L7ServiceAliasDTO.L7ServiceAliasInput param1) throws FindException {
      // $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:
      // 00: aload 1
      // 01: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasInput.getRefInput ()Lcom/l7tech/external/assertions/gatewaygraphql/server/input/EntityRefInput;
      // 04: checkcast com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasRefInput
      // 07: astore 2
      // 08: aload 2
      // 09: ifnull 1f
      // 0c: aload 0
      // 0d: aload 2
      // 0e: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasRefInput.getName ()Ljava/lang/String;
      // 11: aload 2
      // 12: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasRefInput.getAliasedServiceName ()Ljava/lang/String;
      // 15: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.a (Ljava/lang/String;Ljava/lang/String;)Lcom/l7tech/gateway/common/service/PublishedService;
      // 18: goto 2b
      // 1b: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 1e: athrow
      // 1f: aload 0
      // 20: aload 1
      // 21: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasInput.getName ()Ljava/lang/String;
      // 24: aload 1
      // 25: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasInput.getAliasedServiceName ()Ljava/lang/String;
      // 28: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.a (Ljava/lang/String;Ljava/lang/String;)Lcom/l7tech/gateway/common/service/PublishedService;
      // 2b: astore 3
      // 2c: aload 1
      // 2d: aload 3
      // 2e: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasInput.setService (Lcom/l7tech/gateway/common/service/PublishedService;)V
      // 31: aload 3
      // 32: ifnonnull 64
      // 35: aload 2
      // 36: ifnull 62
      // 39: goto 40
      // 3c: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 3f: athrow
      // 40: aload 2
      // 41: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasRefInput.getGoid ()Ljava/lang/String;
      // 44: ifnull 62
      // 47: goto 4e
      // 4a: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 4d: athrow
      // 4e: aload 0
      // 4f: aload 2
      // 50: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasRefInput.getGoid ()Ljava/lang/String;
      // 53: invokestatic com/l7tech/objectmodel/Goid.parseGoid (Ljava/lang/String;)Lcom/l7tech/objectmodel/Goid;
      // 56: aload 2
      // 57: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasRefInput.getName ()Ljava/lang/String;
      // 5a: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.a (Lcom/l7tech/objectmodel/Goid;Ljava/lang/String;)Lcom/l7tech/gateway/common/service/PublishedServiceAlias;
      // 5d: areturn
      // 5e: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 61: athrow
      // 62: aconst_null
      // 63: areturn
      // 64: aload 2
      // 65: ifnull 78
      // 68: aload 0
      // 69: aload 1
      // 6a: aload 2
      // 6b: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasRefInput.getFolderPath ()Ljava/lang/String;
      // 6e: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.getFolderSafely (Lcom/l7tech/external/assertions/gatewaygraphql/server/input/EntityInput;Ljava/lang/String;)Lcom/l7tech/objectmodel/folder/Folder;
      // 71: goto 81
      // 74: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 77: athrow
      // 78: aload 0
      // 79: aload 1
      // 7a: aload 1
      // 7b: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/L7ServiceAliasDTO$L7ServiceAliasInput.getFolderPath ()Ljava/lang/String;
      // 7e: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.getFolderSafely (Lcom/l7tech/external/assertions/gatewaygraphql/server/input/EntityInput;Ljava/lang/String;)Lcom/l7tech/objectmodel/folder/Folder;
      // 81: astore 4
      // 83: aload 4
      // 85: ifnonnull 8e
      // 88: aconst_null
      // 89: areturn
      // 8a: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 8d: athrow
      // 8e: aload 0
      // 8f: getfield com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.entityManager Lcom/l7tech/objectmodel/EntityManager;
      // 92: checkcast com/l7tech/server/service/ServiceAliasManager
      // 95: aload 3
      // 96: invokevirtual com/l7tech/gateway/common/service/PublishedService.getGoid ()Lcom/l7tech/objectmodel/Goid;
      // 99: aload 4
      // 9b: invokevirtual com/l7tech/objectmodel/folder/Folder.getGoid ()Lcom/l7tech/objectmodel/Goid;
      // 9e: invokeinterface com/l7tech/server/service/ServiceAliasManager.findAliasByEntityAndFolder (Lcom/l7tech/objectmodel/Goid;Lcom/l7tech/objectmodel/Goid;)Lcom/l7tech/objectmodel/Alias; 3
      // a3: checkcast com/l7tech/gateway/common/service/PublishedServiceAlias
      // a6: areturn
      // try (4 -> 13): 13 com/l7tech/objectmodel/FindException
      // try (22 -> 29): 30 com/l7tech/objectmodel/FindException
      // try (27 -> 35): 36 com/l7tech/objectmodel/FindException
      // try (32 -> 46): 46 com/l7tech/objectmodel/FindException
      // try (50 -> 58): 58 com/l7tech/objectmodel/FindException
      // try (66 -> 70): 70 com/l7tech/objectmodel/FindException
   }

   private PublishedServiceAlias a(Goid param1, String param2) throws FindException {
      // $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:
      // 00: aload 0
      // 01: aload 1
      // 02: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.findByGoid (Lcom/l7tech/objectmodel/Goid;)Lcom/l7tech/objectmodel/PersistentEntity;
      // 05: checkcast com/l7tech/gateway/common/service/PublishedServiceAlias
      // 08: astore 3
      // 09: aload 3
      // 0a: ifnull 24
      // 0d: aload 0
      // 0e: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.a ()Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/entityref/EntityRefResolver;
      // 11: aload 3
      // 12: invokevirtual com/l7tech/gateway/common/service/PublishedServiceAlias.getEntityGoid ()Lcom/l7tech/objectmodel/Goid;
      // 15: invokeinterface com/l7tech/external/assertions/gatewaygraphql/server/resolver/entityref/EntityRefResolver.toEntityQuietly (Lcom/l7tech/objectmodel/Goid;)Lcom/l7tech/objectmodel/Entity; 2
      // 1a: checkcast com/l7tech/gateway/common/service/PublishedService
      // 1d: goto 25
      // 20: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 23: athrow
      // 24: aconst_null
      // 25: astore 4
      // 27: aload 4
      // 29: ifnull 50
      // 2c: aload 4
      // 2e: invokevirtual com/l7tech/gateway/common/service/PublishedService.getName ()Ljava/lang/String;
      // 31: aload 2
      // 32: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 35: ifne 50
      // 38: goto 3f
      // 3b: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 3e: athrow
      // 3f: new java/lang/IllegalStateException
      // 42: dup
      // 43: getstatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.d [Ljava/lang/String;
      // 46: bipush 4
      // 47: aaload
      // 48: invokespecial java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
      // 4b: athrow
      // 4c: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 4f: athrow
      // 50: aload 3
      // 51: areturn
      // try (5 -> 14): 14 com/l7tech/objectmodel/FindException
      // try (18 -> 25): 26 com/l7tech/objectmodel/FindException
      // try (20 -> 35): 35 com/l7tech/objectmodel/FindException
   }

   private PublishedService a(String param1, @Nullable String param2) {
      // $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:
      // 00: aload 2
      // 01: ifnull 39
      // 04: aload 0
      // 05: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.a ()Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/entityref/EntityRefResolver;
      // 08: aload 2
      // 09: invokeinterface com/l7tech/external/assertions/gatewaygraphql/server/resolver/entityref/EntityRefResolver.toEntityQuietly (Ljava/lang/String;)Lcom/l7tech/objectmodel/Entity; 2
      // 0e: checkcast com/l7tech/gateway/common/service/PublishedService
      // 11: astore 3
      // 12: aload 3
      // 13: ifnull 47
      // 16: aload 3
      // 17: invokevirtual com/l7tech/gateway/common/service/PublishedService.getName ()Ljava/lang/String;
      // 1a: aload 1
      // 1b: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 1e: ifne 47
      // 21: goto 28
      // 24: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 27: athrow
      // 28: new java/lang/IllegalStateException
      // 2b: dup
      // 2c: getstatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.d [Ljava/lang/String;
      // 2f: bipush 3
      // 30: aaload
      // 31: invokespecial java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
      // 34: athrow
      // 35: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 38: athrow
      // 39: aload 0
      // 3a: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/L7ServiceAliasMutationResolver.a ()Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/entityref/EntityRefResolver;
      // 3d: aload 1
      // 3e: invokeinterface com/l7tech/external/assertions/gatewaygraphql/server/resolver/entityref/EntityRefResolver.toEntityQuietly (Ljava/lang/String;)Lcom/l7tech/objectmodel/Entity; 2
      // 43: checkcast com/l7tech/gateway/common/service/PublishedService
      // 46: astore 3
      // 47: aload 3
      // 48: areturn
      // try (8 -> 15): 16 java/lang/IllegalStateException
      // try (10 -> 25): 25 java/lang/IllegalStateException
   }

   @Generated
   private EntityRefResolver a() {
      Object var1 = this.c.get();
      if (var1 == null) {
         synchronized (this.c) {
            var1 = this.c.get();
            if (var1 == null) {
               EntityRefResolver var3 = EntityRefUtil.getRefResolver(EntityTypeInfo.SERVICE);

               Object var10000;
               label41: {
                  try {
                     if (var3 == null) {
                        var10000 = this.c;
                        break label41;
                     }
                  } catch (IllegalStateException var6) {
                     throw b(var6);
                  }

                  var10000 = var3;
               }

               var1 = var10000;
               this.c.set(var1);
            }
         }
      }

      try {
         if (var1 == this.c) {
            return (EntityRefResolver)null;
         }
      } catch (IllegalStateException var5) {
         throw b(var5);
      }

      return (EntityRefResolver)var1;
   }

   static {
      String[] var5 = new String[7];
      int var3 = 0;
      String var2 = "i\u0011Wbz!\u0015KI_}g)\b\f\u0000M1o$\tI\bZh.=\u000b\f\u001dQ1j)\u000fI\u0016\u007f\fLgg+\u001e\fA\u001bb'h\u0015C\u001d\u001ewa=\u0015H\nJ\u0006Ruk:+M\u001dV\u001dm\u0005Wp}-\u001f\f\u001a[cx!\u0018IIPpc-[A\u0000M|o<\u0018D\u001dm\u0005Wp}-\u001f\f\u001a[cx!\u0018IIPpc-[A\u0000M|o<\u0018D";
      int var4 = "i\u0011Wbz!\u0015KI_}g)\b\f\u0000M1o$\tI\bZh.=\u000b\f\u001dQ1j)\u000fI\u0016\u007f\fLgg+\u001e\fA\u001bb'h\u0015C\u001d\u001ewa=\u0015H\nJ\u0006Ruk:+M\u001dV\u001dm\u0005Wp}-\u001f\f\u001a[cx!\u0018IIPpc-[A\u0000M|o<\u0018D\u001dm\u0005Wp}-\u001f\f\u001a[cx!\u0018IIPpc-[A\u0000M|o<\u0018D"
         .length();
      char var1 = '$';
      int var7 = -1;

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

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

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

                  var2 = "\u0019J\n!!mX+C\u00116;C\\\u0004N\u001f2:\n\f@\u00143-|m\u000b[\u0010";
                  var4 = "\u0019J\n!!mX+C\u00116;C\\\u0004N\u001f2:\n\f@\u00143-|m\u000b[\u0010".length();
                  var1 = 19;
                  var7 = -1;
            }

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

   private static Exception b(Exception var0) {
      return var0;
   }

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

      return var10000;
   }

   private static String c(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 -> 81;
            case 1 -> 20;
            case 2 -> 67;
            case 3 -> 108;
            case 4 -> 115;
            case 5 -> 53;
            default -> 6;
         });
      }

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