package com.l7tech.gateway.pm2.graphql.helper;

import com.l7tech.gateway.common.admin.FolderAdmin;
import com.l7tech.gateway.common.service.PublishedService;
import com.l7tech.gateway.common.service.ServiceAdmin;
import com.l7tech.gateway.common.service.ServiceTemplate;
import com.l7tech.gateway.pm2.graphql.beans.entity.PublishInternalService;
import com.l7tech.gateway.pm2.graphql.beans.entity.PublishInternalServiceResponseDTO;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.folder.Folder;
import java.net.MalformedURLException;
import java.util.Set;

public class PublishInternalServiceHelper {
   private final ServiceAdmin a;
   private final FolderAdmin b;
   private static final String[] c;

   public PublishInternalServiceHelper(ServiceAdmin var1, FolderAdmin var2) {
      this.a = var1;
      this.b = var2;
   }

   public PublishInternalServiceResponseDTO publishInternalService(PublishInternalService 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: aload 1
      // 001: ifnull 020
      // 004: aload 1
      // 005: invokevirtual com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalService.getTemplateName ()Ljava/lang/String;
      // 008: ifnull 020
      // 00b: goto 00f
      // 00e: athrow
      // 00f: aload 1
      // 010: invokevirtual com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalService.getTemplateName ()Ljava/lang/String;
      // 013: invokevirtual java/lang/String.trim ()Ljava/lang/String;
      // 016: invokevirtual java/lang/String.isEmpty ()Z
      // 019: ifeq 02b
      // 01c: goto 020
      // 01f: athrow
      // 020: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 023: bipush 10
      // 025: aaload
      // 026: invokestatic com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO.error (Ljava/lang/String;)Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO;
      // 029: areturn
      // 02a: athrow
      // 02b: aload 0
      // 02c: aload 1
      // 02d: invokevirtual com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalService.getTemplateName ()Ljava/lang/String;
      // 030: invokevirtual com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.a (Ljava/lang/String;)Lcom/l7tech/gateway/common/service/ServiceTemplate;
      // 033: astore 2
      // 034: aload 2
      // 035: ifnonnull 052
      // 038: aload 1
      // 039: invokevirtual com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalService.getTemplateName ()Ljava/lang/String;
      // 03c: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 03f: bipush 8
      // 041: aaload
      // 042: swap
      // 043: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 046: bipush 5
      // 047: aaload
      // 048: 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" ]
      // 04d: invokestatic com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO.error (Ljava/lang/String;)Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO;
      // 050: areturn
      // 051: athrow
      // 052: aload 0
      // 053: aload 2
      // 054: aload 1
      // 055: invokevirtual com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.a (Lcom/l7tech/gateway/common/service/ServiceTemplate;Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalService;)Lcom/l7tech/gateway/common/service/PublishedService;
      // 058: astore 3
      // 059: aload 2
      // 05a: invokevirtual com/l7tech/gateway/common/service/ServiceTemplate.getServiceDocuments ()Ljava/util/List;
      // 05d: astore 4
      // 05f: aload 3
      // 060: invokevirtual com/l7tech/gateway/common/service/PublishedService.isDisabled ()Z
      // 063: ifne 089
      // 066: aload 0
      // 067: getfield com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.a Lcom/l7tech/gateway/common/service/ServiceAdmin;
      // 06a: aload 3
      // 06b: aload 4
      // 06d: invokeinterface com/l7tech/gateway/common/service/ServiceAdmin.generateResolutionReportForNewService (Lcom/l7tech/gateway/common/service/PublishedService;Ljava/util/Collection;)Lcom/l7tech/gateway/common/service/ServiceAdmin$ResolutionReport; 3
      // 072: invokevirtual com/l7tech/gateway/common/service/ServiceAdmin$ResolutionReport.isSuccess ()Z
      // 075: ifne 089
      // 078: goto 07c
      // 07b: athrow
      // 07c: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 07f: astore 6
      // 081: aload 6
      // 083: bipush 2
      // 084: aaload
      // 085: invokestatic com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO.error (Ljava/lang/String;)Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO;
      // 088: areturn
      // 089: aload 3
      // 08a: invokevirtual com/l7tech/gateway/common/service/PublishedService.isSoap ()Z
      // 08d: ifeq 0a1
      // 090: aload 0
      // 091: getfield com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.a Lcom/l7tech/gateway/common/service/ServiceAdmin;
      // 094: aload 3
      // 095: aload 4
      // 097: invokeinterface com/l7tech/gateway/common/service/ServiceAdmin.savePublishedServiceWithDocuments (Lcom/l7tech/gateway/common/service/PublishedService;Ljava/util/Collection;)Lcom/l7tech/objectmodel/Goid; 3
      // 09c: astore 5
      // 09e: goto 0c0
      // 0a1: aload 3
      // 0a2: getstatic com/l7tech/common/http/HttpMethod.POST Lcom/l7tech/common/http/HttpMethod;
      // 0a5: getstatic com/l7tech/common/http/HttpMethod.GET Lcom/l7tech/common/http/HttpMethod;
      // 0a8: getstatic com/l7tech/common/http/HttpMethod.PUT Lcom/l7tech/common/http/HttpMethod;
      // 0ab: getstatic com/l7tech/common/http/HttpMethod.DELETE Lcom/l7tech/common/http/HttpMethod;
      // 0ae: invokestatic java/util/EnumSet.of (Ljava/lang/Enum;Ljava/lang/Enum;Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;
      // 0b1: invokevirtual com/l7tech/gateway/common/service/PublishedService.setHttpMethods (Ljava/util/Set;)V
      // 0b4: aload 0
      // 0b5: getfield com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.a Lcom/l7tech/gateway/common/service/ServiceAdmin;
      // 0b8: aload 3
      // 0b9: invokeinterface com/l7tech/gateway/common/service/ServiceAdmin.savePublishedService (Lcom/l7tech/gateway/common/service/PublishedService;)Lcom/l7tech/objectmodel/Goid; 2
      // 0be: astore 5
      // 0c0: aload 3
      // 0c1: aload 5
      // 0c3: invokevirtual com/l7tech/gateway/common/service/PublishedService.setGoid (Lcom/l7tech/objectmodel/Goid;)V
      // 0c6: new com/l7tech/gateway/pm2/graphql/beans/entity/PublishedServiceDTO
      // 0c9: dup
      // 0ca: aload 3
      // 0cb: invokespecial com/l7tech/gateway/pm2/graphql/beans/entity/PublishedServiceDTO.<init> (Lcom/l7tech/gateway/common/service/PublishedService;)V
      // 0ce: aload 3
      // 0cf: invokevirtual com/l7tech/gateway/common/service/PublishedService.getName ()Ljava/lang/String;
      // 0d2: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 0d5: astore 6
      // 0d7: aload 6
      // 0d9: bipush 4
      // 0da: aaload
      // 0db: swap
      // 0dc: aload 6
      // 0de: bipush 3
      // 0df: aaload
      // 0e0: 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" ]
      // 0e5: invokestatic com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO.success (Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishedServiceDTO;Ljava/lang/String;)Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO;
      // 0e8: areturn
      // 0e9: astore 3
      // 0ea: aload 3
      // 0eb: invokevirtual com/l7tech/objectmodel/FindException.getMessage ()Ljava/lang/String;
      // 0ee: astore 4
      // 0f0: aload 4
      // 0f2: ifnull 10e
      // 0f5: aload 4
      // 0f7: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 0fa: bipush 11
      // 0fc: aaload
      // 0fd: invokevirtual java/lang/String.contains (Ljava/lang/CharSequence;)Z
      // 100: ifeq 10e
      // 103: goto 107
      // 106: athrow
      // 107: aload 4
      // 109: invokestatic com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO.error (Ljava/lang/String;)Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO;
      // 10c: areturn
      // 10d: athrow
      // 10e: aload 4
      // 110: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 113: astore 6
      // 115: aload 6
      // 117: bipush 7
      // 119: aaload
      // 11a: swap
      // 11b: 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" ]
      // 120: invokestatic com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO.error (Ljava/lang/String;)Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO;
      // 123: areturn
      // 124: astore 3
      // 125: aload 3
      // 126: invokevirtual com/l7tech/policy/assertion/PolicyAssertionException.getMessage ()Ljava/lang/String;
      // 129: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 12c: astore 6
      // 12e: aload 6
      // 130: bipush 0
      // 131: aaload
      // 132: swap
      // 133: 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" ]
      // 138: invokestatic com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO.error (Ljava/lang/String;)Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO;
      // 13b: areturn
      // 13c: astore 3
      // 13d: aload 3
      // 13e: invokevirtual java/lang/Exception.getMessage ()Ljava/lang/String;
      // 141: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 144: bipush 9
      // 146: aaload
      // 147: swap
      // 148: 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" ]
      // 14d: invokestatic com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO.error (Ljava/lang/String;)Lcom/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalServiceResponseDTO;
      // 150: areturn
      // try (48 -> 58): 59 com/l7tech/objectmodel/FindException
      // try (25 -> 39): 39 com/l7tech/objectmodel/FindException
      // try (7 -> 19): 19 com/l7tech/objectmodel/FindException
      // try (2 -> 12): 13 com/l7tech/objectmodel/FindException
      // try (0 -> 5): 6 com/l7tech/objectmodel/FindException
      // try (40 -> 66): 110 com/l7tech/objectmodel/FindException
      // try (67 -> 109): 110 com/l7tech/objectmodel/FindException
      // try (40 -> 66): 138 com/l7tech/policy/assertion/PolicyAssertionException
      // try (67 -> 109): 138 com/l7tech/policy/assertion/PolicyAssertionException
      // try (40 -> 66): 150 java/lang/Exception
      // try (67 -> 109): 150 java/lang/Exception
      // try (114 -> 122): 123 com/l7tech/objectmodel/FindException
      // try (116 -> 127): 127 com/l7tech/objectmodel/FindException
   }

   private ServiceTemplate a(String var1) {
      Set var2 = this.a.findAllTemplates();
      return var2.stream().filter(var1x -> var1.equals(var1x.getName())).findFirst().orElse(null);
   }

   private PublishedService a(ServiceTemplate param1, PublishInternalService param2) throws FindException, MalformedURLException {
      // $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: new com/l7tech/gateway/common/service/PublishedService
      // 03: dup
      // 04: invokespecial com/l7tech/gateway/common/service/PublishedService.<init> ()V
      // 07: astore 3
      // 08: aload 3
      // 09: aload 0
      // 0a: aload 2
      // 0b: invokevirtual com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalService.getFolderPath ()Ljava/lang/String;
      // 0e: invokevirtual com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.b (Ljava/lang/String;)Lcom/l7tech/objectmodel/folder/Folder;
      // 11: invokevirtual com/l7tech/gateway/common/service/PublishedService.setFolder (Lcom/l7tech/objectmodel/folder/Folder;)V
      // 14: aload 3
      // 15: aload 1
      // 16: invokevirtual com/l7tech/gateway/common/service/ServiceTemplate.getName ()Ljava/lang/String;
      // 19: invokevirtual com/l7tech/gateway/common/service/PublishedService.setName (Ljava/lang/String;)V
      // 1c: aload 3
      // 1d: invokevirtual com/l7tech/gateway/common/service/PublishedService.getPolicy ()Lcom/l7tech/policy/Policy;
      // 20: aload 1
      // 21: invokevirtual com/l7tech/gateway/common/service/ServiceTemplate.getDefaultPolicyXml ()Ljava/lang/String;
      // 24: invokevirtual com/l7tech/policy/Policy.setXml (Ljava/lang/String;)V
      // 27: aload 2
      // 28: invokevirtual com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalService.getRoutingUri ()Ljava/lang/String;
      // 2b: ifnull 4a
      // 2e: aload 2
      // 2f: invokevirtual com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalService.getRoutingUri ()Ljava/lang/String;
      // 32: invokevirtual java/lang/String.trim ()Ljava/lang/String;
      // 35: invokevirtual java/lang/String.isEmpty ()Z
      // 38: ifne 4a
      // 3b: goto 3f
      // 3e: athrow
      // 3f: aload 2
      // 40: invokevirtual com/l7tech/gateway/pm2/graphql/beans/entity/PublishInternalService.getRoutingUri ()Ljava/lang/String;
      // 43: invokevirtual java/lang/String.trim ()Ljava/lang/String;
      // 46: goto 4e
      // 49: athrow
      // 4a: aload 1
      // 4b: invokevirtual com/l7tech/gateway/common/service/ServiceTemplate.getDefaultUriPrefix ()Ljava/lang/String;
      // 4e: astore 4
      // 50: aload 3
      // 51: aload 4
      // 53: invokevirtual com/l7tech/gateway/common/service/PublishedService.setRoutingUri (Ljava/lang/String;)V
      // 56: aload 3
      // 57: aload 1
      // 58: invokevirtual com/l7tech/gateway/common/service/ServiceTemplate.isSoap ()Z
      // 5b: invokevirtual com/l7tech/gateway/common/service/PublishedService.setSoap (Z)V
      // 5e: aload 3
      // 5f: bipush 1
      // 60: invokevirtual com/l7tech/gateway/common/service/PublishedService.setInternal (Z)V
      // 63: aload 3
      // 64: new com/l7tech/gateway/common/service/ServiceDocumentWsdlStrategy
      // 67: dup
      // 68: aload 1
      // 69: invokevirtual com/l7tech/gateway/common/service/ServiceTemplate.getServiceDocuments ()Ljava/util/List;
      // 6c: invokespecial com/l7tech/gateway/common/service/ServiceDocumentWsdlStrategy.<init> (Ljava/util/Collection;)V
      // 6f: invokevirtual com/l7tech/gateway/common/service/PublishedService.parseWsdlStrategy (Lcom/l7tech/gateway/common/service/PublishedService$WsdlStrategy;)V
      // 72: aload 3
      // 73: aload 1
      // 74: invokevirtual com/l7tech/gateway/common/service/ServiceTemplate.getServiceDescriptorUrl ()Ljava/lang/String;
      // 77: invokevirtual com/l7tech/gateway/common/service/PublishedService.setWsdlUrl (Ljava/lang/String;)V
      // 7a: aload 3
      // 7b: aload 1
      // 7c: invokevirtual com/l7tech/gateway/common/service/ServiceTemplate.getServiceDescriptorXml ()Ljava/lang/String;
      // 7f: invokevirtual com/l7tech/gateway/common/service/PublishedService.setWsdlXml (Ljava/lang/String;)V
      // 82: aload 3
      // 83: bipush 0
      // 84: invokevirtual com/l7tech/gateway/common/service/PublishedService.setDisabled (Z)V
      // 87: aload 3
      // 88: aconst_null
      // 89: invokevirtual com/l7tech/gateway/common/service/PublishedService.setSecurityZone (Lcom/l7tech/objectmodel/SecurityZone;)V
      // 8c: aload 3
      // 8d: invokevirtual com/l7tech/gateway/common/service/PublishedService.getPolicy ()Lcom/l7tech/policy/Policy;
      // 90: aconst_null
      // 91: invokevirtual com/l7tech/policy/Policy.setSecurityZone (Lcom/l7tech/objectmodel/SecurityZone;)V
      // 94: aload 3
      // 95: areturn
      // try (4 -> 27): 28 com/l7tech/objectmodel/FindException
      // try (22 -> 33): 33 com/l7tech/objectmodel/FindException
   }

   private Folder b(String 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: ifnull 22
      // 04: aload 1
      // 05: invokevirtual java/lang/String.trim ()Ljava/lang/String;
      // 08: invokevirtual java/lang/String.isEmpty ()Z
      // 0b: ifne 22
      // 0e: goto 12
      // 11: athrow
      // 12: ldc "/"
      // 14: aload 1
      // 15: invokevirtual java/lang/String.trim ()Ljava/lang/String;
      // 18: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 1b: ifeq 44
      // 1e: goto 22
      // 21: athrow
      // 22: aload 0
      // 23: getfield com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.b Lcom/l7tech/gateway/common/admin/FolderAdmin;
      // 26: getstatic com/l7tech/objectmodel/folder/Folder.ROOT_FOLDER_ID Lcom/l7tech/objectmodel/Goid;
      // 29: invokeinterface com/l7tech/gateway/common/admin/FolderAdmin.findByPrimaryKey (Lcom/l7tech/objectmodel/Goid;)Lcom/l7tech/objectmodel/folder/Folder; 2
      // 2e: astore 2
      // 2f: aload 2
      // 30: ifnonnull 42
      // 33: new com/l7tech/objectmodel/FindException
      // 36: dup
      // 37: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // 3a: bipush 6
      // 3c: aaload
      // 3d: invokespecial com/l7tech/objectmodel/FindException.<init> (Ljava/lang/String;)V
      // 40: athrow
      // 41: athrow
      // 42: aload 2
      // 43: areturn
      // 44: aload 1
      // 45: invokevirtual java/lang/String.trim ()Ljava/lang/String;
      // 48: astore 2
      // 49: aload 2
      // 4a: ldc "/"
      // 4c: invokevirtual java/lang/String.startsWith (Ljava/lang/String;)Z
      // 4f: ifne 59
      // 52: aload 2
      // 53: invokedynamic makeConcatWithConstants (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" ]
      // 58: astore 2
      // 59: aload 0
      // 5a: getfield com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.b Lcom/l7tech/gateway/common/admin/FolderAdmin;
      // 5d: invokeinterface com/l7tech/gateway/common/admin/FolderAdmin.findAllFolders ()Ljava/util/Collection; 1
      // 62: astore 3
      // 63: aload 3
      // 64: invokeinterface java/util/Collection.iterator ()Ljava/util/Iterator; 1
      // 69: astore 4
      // 6b: aload 4
      // 6d: invokeinterface java/util/Iterator.hasNext ()Z 1
      // 72: ifeq a9
      // 75: aload 4
      // 77: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1
      // 7c: checkcast com/l7tech/objectmodel/folder/FolderHeader
      // 7f: astore 5
      // 81: aload 2
      // 82: aload 5
      // 84: invokevirtual com/l7tech/objectmodel/folder/FolderHeader.getPath ()Ljava/lang/String;
      // 87: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 8a: ifeq a6
      // 8d: aload 0
      // 8e: getfield com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.b Lcom/l7tech/gateway/common/admin/FolderAdmin;
      // 91: aload 5
      // 93: invokevirtual com/l7tech/objectmodel/folder/FolderHeader.getGoid ()Lcom/l7tech/objectmodel/Goid;
      // 96: invokeinterface com/l7tech/gateway/common/admin/FolderAdmin.findByPrimaryKey (Lcom/l7tech/objectmodel/Goid;)Lcom/l7tech/objectmodel/folder/Folder; 2
      // 9b: astore 6
      // 9d: aload 6
      // 9f: ifnull a6
      // a2: aload 6
      // a4: areturn
      // a5: athrow
      // a6: goto 6b
      // a9: new com/l7tech/objectmodel/FindException
      // ac: dup
      // ad: aload 1
      // ae: getstatic com/l7tech/gateway/pm2/graphql/helper/PublishInternalServiceHelper.c [Ljava/lang/String;
      // b1: bipush 1
      // b2: aaload
      // b3: swap
      // b4: 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" ]
      // b9: invokespecial com/l7tech/objectmodel/FindException.<init> (Ljava/lang/String;)V
      // bc: athrow
      // try (0 -> 6): 7 com/l7tech/objectmodel/FindException
      // try (2 -> 13): 14 com/l7tech/objectmodel/FindException
      // try (20 -> 29): 29 com/l7tech/objectmodel/FindException
      // try (67 -> 71): 71 com/l7tech/objectmodel/FindException
   }

   static {
      String[] var5 = new String[12];
      int var3 = 0;
      String var2 = "#@\u001de.M}\u0016]\u0003c?\u000e}\u001a5@\u001dh(F}\u001d@\u0005,+[(\u001dKQm9\u0014-\u0012[\u00196m\u0091!J\u0002c!A)\u001a@\u001f,.[3\u0015C\u0018o9\u000e}\u0007G\u0014,?[(\u0007F\u001fkma\u000f:\u000fYc?\u0014\u000e<n!,?Q.\u001cC\u0004x$[3S_\u0010~,Y8\u0007J\u0003\u007fd\u0014<\u0001JQm!F8\u0012K\b,8G8\u0017\u000f\u0013umU3SJ\te>@4\u001dHQ\u007f(F+\u001aL\u0014\"md1\u0016N\u0002imA.\u0016\u000f\u0010,)];\u0015J\u0003i#@}\u0001@\u0004x$Z:Sz#Ec\u0018T\u000f\u0001y/X4\u0000G\u0014hmG(\u0010L\u0014\u007f>R(\u001fC\b\u0012:A\u0005i?Z<\u001f\u000f\u0002i?B4\u0010JQ+\u000bT\u000f\u001fc9\u0014;\u001cZ\u001fh\u0015!@\u001exmR2\u001fK\u0014~mZ2\u0007\u000f\u0017c8Z9\u001b&A\u0010n!Q}\u0007@Q|8V1\u001a\\\u0019,>Q/\u0005F\u0012iw\u0014\u0012 J\u0003z$W8S[\u0014a=X<\u0007JQ+\u001b&A\u0010n!Q}\u0007@Q|8V1\u001a\\\u0019,>Q/\u0005F\u0012iw\u0014";
      int var4 = "#@\u001de.M}\u0016]\u0003c?\u000e}\u001a5@\u001dh(F}\u001d@\u0005,+[(\u001dKQm9\u0014-\u0012[\u00196m\u0091!J\u0002c!A)\u001a@\u001f,.[3\u0015C\u0018o9\u000e}\u0007G\u0014,?[(\u0007F\u001fkma\u000f:\u000fYc?\u0014\u000e<n!,?Q.\u001cC\u0004x$[3S_\u0010~,Y8\u0007J\u0003\u007fd\u0014<\u0001JQm!F8\u0012K\b,8G8\u0017\u000f\u0013umU3SJ\te>@4\u001dHQ\u007f(F+\u001aL\u0014\"md1\u0016N\u0002imA.\u0016\u000f\u0010,)];\u0015J\u0003i#@}\u0001@\u0004x$Z:Sz#Ec\u0018T\u000f\u0001y/X4\u0000G\u0014hmG(\u0010L\u0014\u007f>R(\u001fC\b\u0012:A\u0005i?Z<\u001f\u000f\u0002i?B4\u0010JQ+\u000bT\u000f\u001fc9\u0014;\u001cZ\u001fh\u0015!@\u001exmR2\u001fK\u0014~mZ2\u0007\u000f\u0017c8Z9\u001b&A\u0010n!Q}\u0007@Q|8V1\u001a\\\u0019,>Q/\u0005F\u0012iw\u0014\u0012 J\u0003z$W8S[\u0014a=X<\u0007JQ+\u001b&A\u0010n!Q}\u0007@Q|8V1\u001a\\\u0019,>Q/\u0005F\u0012iw\u0014"
         .length();
      char var1 = 14;
      int var7 = -1;

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

         while (true) {
            String var12 = a(c(var10000));
            switch (var10001) {
               case 0:
                  var5[var3++] = var12;
                  if ((var7 += var1) >= var4) {
                     c = var5;
                     return;
                  }

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

                  var2 = "'J\u001c|!U)\u0016\u000f\u001fm Q}\u001a\\Q~(E(\u001a]\u0014h\u00065@\u001dh(F";
                  var4 = "'J\u001c|!U)\u0016\u000f\u001fm Q}\u001a\\Q~(E(\u001a]\u0014h\u00065@\u001dh(F".length();
                  var1 = 25;
                  var7 = -1;
            }

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

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

      return var10000;
   }

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

      for (int var1 = 0; var10000 > var1; var1++) {
         var10001[var1] = (char)(var10001[var1] ^ switch (var1 % 7) {
            case 0 -> 115;
            case 1 -> 47;
            case 2 -> 113;
            case 3 -> 12;
            case 4 -> 77;
            case 5 -> 52;
            default -> 93;
         });
      }

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