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

import com.l7tech.common.http.HttpMethod;
import com.l7tech.gateway.api.ManagedObjectFactory;
import com.l7tech.gateway.api.PolicyExportResult;
import com.l7tech.gateway.api.PolicyImportResult;
import com.l7tech.gateway.api.PolicyValidationResult;
import com.l7tech.gateway.api.Resource;
import com.l7tech.gateway.api.ResourceSet;
import com.l7tech.gateway.api.ServiceDetail;
import com.l7tech.gateway.api.ServiceMO;
import com.l7tech.gateway.api.ServiceDetail.HttpMapping;
import com.l7tech.gateway.api.ServiceDetail.ServiceMapping;
import com.l7tech.gateway.api.ServiceDetail.SoapMapping;
import com.l7tech.gateway.api.impl.PolicyImportContext;
import com.l7tech.gateway.api.impl.PolicyValidationContext;
import com.l7tech.gateway.api.impl.VersionComment;
import com.l7tech.gateway.common.service.PublishedService;
import com.l7tech.gateway.common.service.ServiceDocument;
import com.l7tech.gateway.common.service.ServiceHeader;
import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.ObjectModelException;
import com.l7tech.objectmodel.PersistentEntity;
import com.l7tech.objectmodel.SaveException;
import com.l7tech.policy.Policy;
import com.l7tech.policy.wsp.WspWriter;
import com.l7tech.server.policy.PolicyVersionManager;
import com.l7tech.server.security.rbac.RbacServices;
import com.l7tech.server.security.rbac.SecurityFilter;
import com.l7tech.server.security.rbac.SecurityZoneManager;
import com.l7tech.server.service.ServiceDocumentManager;
import com.l7tech.server.service.ServiceDocumentResolver;
import com.l7tech.server.service.ServiceManager;
import com.l7tech.server.uddi.ServiceWsdlUpdateChecker;
import com.l7tech.util.Either;
import com.l7tech.util.Eithers;
import com.l7tech.util.Functions;
import com.l7tech.util.Option;
import com.l7tech.util.Pair;
import com.l7tech.util.TextUtils;
import com.l7tech.xml.soap.SoapVersion;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import org.springframework.transaction.PlatformTransactionManager;

@ResourceFactory.ResourceType(type = ServiceMO.class)
public class ServiceResourceFactory extends SecurityZoneableEntityManagerResourceFactory<ServiceMO, PublishedService, ServiceHeader> {
   public static final String UNKNOWN_SOAP_VERSION;
   private static final String o;
   private static final String p;
   private final ServiceManager q;
   private final ServiceDocumentManager r;
   private final ServiceDocumentResolver s;
   private final ServiceWsdlUpdateChecker t;
   private final PolicyHelper u;
   private final FolderResourceFactory v;
   private final cr w = new cr();
   private final PolicyVersionManager x;
   private static final String[] A;

   public ServiceResourceFactory(
      RbacServices var1,
      SecurityFilter var2,
      PlatformTransactionManager var3,
      ServiceManager var4,
      ServiceDocumentManager var5,
      ServiceDocumentResolver var6,
      ServiceWsdlUpdateChecker var7,
      PolicyHelper var8,
      FolderResourceFactory var9,
      SecurityZoneManager var10,
      PolicyVersionManager var11
   ) {
      super(false, false, var1, var2, var3, var4, var10);
      this.q = var4;
      this.r = var5;
      this.s = var6;
      this.t = var7;
      this.u = var8;
      this.v = var9;
      this.x = var11;
   }

   @ResourceFactory.ResourceMethod(name = "ImportPolicy", selectors = true, resource = true)
   public PolicyImportResult importPolicy(Map<String, String> var1, PolicyImportContext var2) throws ResourceFactory.ResourceNotFoundException, ResourceFactory.InvalidResourceException {
      return (PolicyImportResult)Eithers.extract2((Either)this.transactional(new c0(this, var1, var2), false));
   }

   @ResourceFactory.ResourceMethod(name = "ExportPolicy", selectors = true)
   public PolicyExportResult exportPolicy(Map<String, String> var1) throws ResourceFactory.ResourceNotFoundException {
      return (PolicyExportResult)Eithers.extract((Either)this.transactional(new c1(this, var1), true));
   }

   @ResourceFactory.ResourceMethod(name = "ValidatePolicy", selectors = true, resource = true)
   public PolicyValidationResult validatePolicy(Map<String, String> var1, PolicyValidationContext var2) throws ResourceFactory.ResourceNotFoundException, ResourceFactory.InvalidResourceException {
      return (PolicyValidationResult)Eithers.extract2((Either)this.transactional(new c2(this, var2, var1), true));
   }

   @ResourceFactory.ResourceMethod(name = "SetVersionComment", selectors = true, resource = true)
   public void setVersionComment(Map<String, String> var1, VersionComment var2) throws ResourceFactory.ResourceNotFoundException, ResourceFactory.InvalidResourceException {
      Eithers.extract2((Either)this.transactional(new c4(this, var1, var2), false));
   }

   protected ServiceMO asResource(EntityManagerResourceFactory.EntityBag<PublishedService> var1) {
      ServiceResourceFactory.ServiceEntityBag var2 = this.cast(var1, ServiceResourceFactory.ServiceEntityBag.class);
      PublishedService var3 = var2.getPublishedService();
      Collection var4 = var2.getServiceDocuments();
      Policy var5 = var3.getPolicy();
      ServiceMO var6 = ManagedObjectFactory.createService();
      ServiceDetail var7 = ManagedObjectFactory.createServiceDetail();
      var6.setId(var3.getId());
      var6.setServiceDetail(var7);
      ArrayList var8 = new ArrayList();

      try {
         var8.add(this.a(var5));
         if (var3.isSoap()) {
            var8.add(this.a(var3, var4));
         }
      } catch (IOException var14) {
         throw a(var14);
      }

      ServiceDetail var10000;
      boolean var10001;
      label52: {
         try {
            var6.setResourceSets(var8);
            var7.setId(var3.getId());
            var7.setVersion(var3.getVersion());
            var7.setFolderId(this.getFolderId(var3));
            var7.setName(var3.getName());
            var10000 = var7;
            if (!var3.isDisabled()) {
               var10001 = true;
               break label52;
            }
         } catch (IOException var16) {
            throw a(var16);
         }

         var10001 = false;
      }

      var10000.setEnabled(var10001);
      var7.setServiceMappings(this.a(var3));
      Map var9 = this.getProperties(var3, PublishedService.class);

      try {
         var9.put(A[1], var5.getVersionOrdinal());
         if (var3.isSoap()) {
            var9.put(A[20], this.a(var3.getSoapVersion()));
         }
      } catch (IOException var15) {
         throw a(var15);
      }

      try {
         String[] var17 = A;
         var9.put(var17[6], this.u.hasRoutingAssertion(var5));
      } catch (IOException var13) {
         String[] var12 = A;
         throw new ResourceFactory.ResourceAccessException(var12[8], var13);
      }

      for (String var11 : var3.getPropertyNames()) {
         var9.put(A[13] + var11, var3.getProperty(var11));
      }

      var7.setProperties(var9);
      this.doSecurityZoneAsResource(var6, var3);
      return var6;
   }

   public Pair<PublishedService, Collection<ServiceDocument>> fromResource(Object var1) throws ResourceFactory.InvalidResourceException {
      ServiceResourceFactory.ServiceEntityBag var2 = (ServiceResourceFactory.ServiceEntityBag)this.fromResourceAsBag(var1);
      return new Pair(var2.getPublishedService(), var2.getServiceDocuments());
   }

   public ServiceMO asResource(PublishedService var1) {
      try {
         return this.asResource(this.loadEntityBag(var1));
      } catch (ObjectModelException var3) {
         return null;
      }
   }

   public PublishedService fromResource(Object var1, boolean var2) throws ResourceFactory.InvalidResourceException {
      return (PublishedService)this.fromResourceAsBag(var1, var2).getEntity();
   }

   @Override
   public EntityManagerResourceFactory.EntityBag<PublishedService> fromResourceAsBag(Object var1) throws ResourceFactory.InvalidResourceException {
      return this.fromResourceAsBag(var1, true);
   }

   @Override
   public EntityManagerResourceFactory.EntityBag<PublishedService> fromResourceAsBag(Object param1, boolean param2) throws ResourceFactory.InvalidResourceException {
      // $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: instanceof com/l7tech/gateway/api/ServiceMO
      // 004: ifne 01c
      // 007: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 00a: dup
      // 00b: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.UNEXPECTED_TYPE Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 00e: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 011: bipush 12
      // 013: aaload
      // 014: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 017: athrow
      // 018: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 01b: athrow
      // 01c: aload 1
      // 01d: checkcast com/l7tech/gateway/api/ServiceMO
      // 020: astore 3
      // 021: aload 3
      // 022: invokevirtual com/l7tech/gateway/api/ServiceMO.getServiceDetail ()Lcom/l7tech/gateway/api/ServiceDetail;
      // 025: astore 4
      // 027: aload 4
      // 029: ifnonnull 041
      // 02c: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 02f: dup
      // 030: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.MISSING_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 033: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 036: bipush 18
      // 038: aaload
      // 039: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 03c: athrow
      // 03d: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 040: athrow
      // 041: aload 0
      // 042: getfield com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.v Lcom/l7tech/external/assertions/gatewaymanagement/server/FolderResourceFactory;
      // 045: aload 4
      // 047: invokevirtual com/l7tech/gateway/api/ServiceDetail.getFolderId ()Ljava/lang/String;
      // 04a: invokestatic com/l7tech/util/Option.optional (Ljava/lang/Object;)Lcom/l7tech/util/Option;
      // 04d: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/FolderResourceFactory.a (Lcom/l7tech/util/Option;)Lcom/l7tech/util/Option;
      // 050: astore 5
      // 052: aload 5
      // 054: invokevirtual com/l7tech/util/Option.isSome ()Z
      // 057: ifne 0a3
      // 05a: iload 2
      // 05b: ifeq 07a
      // 05e: goto 065
      // 061: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 064: athrow
      // 065: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 068: dup
      // 069: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.INVALID_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 06c: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 06f: bipush 25
      // 071: aaload
      // 072: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 075: athrow
      // 076: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 079: athrow
      // 07a: new com/l7tech/objectmodel/folder/Folder
      // 07d: dup
      // 07e: invokespecial com/l7tech/objectmodel/folder/Folder.<init> ()V
      // 081: astore 6
      // 083: aload 6
      // 085: aload 4
      // 087: invokevirtual com/l7tech/gateway/api/ServiceDetail.getFolderId ()Ljava/lang/String;
      // 08a: invokestatic com/l7tech/util/Option.optional (Ljava/lang/Object;)Lcom/l7tech/util/Option;
      // 08d: getstatic com/l7tech/objectmodel/folder/Folder.ROOT_FOLDER_ID Lcom/l7tech/objectmodel/Goid;
      // 090: invokevirtual com/l7tech/objectmodel/Goid.toString ()Ljava/lang/String;
      // 093: invokevirtual com/l7tech/util/Option.orSome (Ljava/lang/Object;)Ljava/lang/Object;
      // 096: checkcast java/lang/String
      // 099: invokevirtual com/l7tech/objectmodel/folder/Folder.setId (Ljava/lang/String;)V
      // 09c: aload 6
      // 09e: invokestatic com/l7tech/util/Option.some (Ljava/lang/Object;)Lcom/l7tech/util/Option;
      // 0a1: astore 5
      // 0a3: aload 0
      // 0a4: getfield com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.w Lcom/l7tech/external/assertions/gatewaymanagement/server/cr;
      // 0a7: aload 3
      // 0a8: invokevirtual com/l7tech/gateway/api/ServiceMO.getResourceSets ()Ljava/util/List;
      // 0ab: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/cr.a (Ljava/util/List;)Ljava/util/Map;
      // 0ae: astore 6
      // 0b0: aload 0
      // 0b1: getfield com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.w Lcom/l7tech/external/assertions/gatewaymanagement/server/cr;
      // 0b4: aload 6
      // 0b6: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 0b9: astore 13
      // 0bb: aload 13
      // 0bd: bipush 10
      // 0bf: aaload
      // 0c0: aload 13
      // 0c2: bipush 10
      // 0c4: aaload
      // 0c5: bipush 1
      // 0c6: aconst_null
      // 0c7: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/cr.a (Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;ZLcom/l7tech/util/Functions$UnaryThrows;)Lcom/l7tech/gateway/api/Resource;
      // 0ca: astore 7
      // 0cc: aload 0
      // 0cd: getfield com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.w Lcom/l7tech/external/assertions/gatewaymanagement/server/cr;
      // 0d0: aload 6
      // 0d2: aload 13
      // 0d4: bipush 2
      // 0d5: aaload
      // 0d6: bipush 0
      // 0d7: new com/l7tech/external/assertions/gatewaymanagement/server/c5
      // 0da: dup
      // 0db: aload 0
      // 0dc: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/c5.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory;)V
      // 0df: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/cr.a (Ljava/util/Map;Ljava/lang/String;ZLcom/l7tech/util/Functions$UnaryThrows;)Ljava/util/Collection;
      // 0e2: astore 8
      // 0e4: new com/l7tech/gateway/common/service/PublishedService
      // 0e7: dup
      // 0e8: invokespecial com/l7tech/gateway/common/service/PublishedService.<init> ()V
      // 0eb: astore 9
      // 0ed: new java/util/ArrayList
      // 0f0: dup
      // 0f1: invokespecial java/util/ArrayList.<init> ()V
      // 0f4: astore 10
      // 0f6: aload 9
      // 0f8: aload 0
      // 0f9: aload 4
      // 0fb: invokevirtual com/l7tech/gateway/api/ServiceDetail.getName ()Ljava/lang/String;
      // 0fe: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.asName (Ljava/lang/String;)Ljava/lang/String;
      // 101: invokevirtual com/l7tech/gateway/common/service/PublishedService.setName (Ljava/lang/String;)V
      // 104: aload 9
      // 106: aload 4
      // 108: invokevirtual com/l7tech/gateway/api/ServiceDetail.getEnabled ()Z
      // 10b: ifne 116
      // 10e: bipush 1
      // 10f: goto 117
      // 112: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 115: athrow
      // 116: bipush 0
      // 117: invokevirtual com/l7tech/gateway/common/service/PublishedService.setDisabled (Z)V
      // 11a: aload 9
      // 11c: aload 5
      // 11e: invokevirtual com/l7tech/util/Option.some ()Ljava/lang/Object;
      // 121: checkcast com/l7tech/objectmodel/folder/Folder
      // 124: invokevirtual com/l7tech/gateway/common/service/PublishedService.setFolder (Lcom/l7tech/objectmodel/folder/Folder;)V
      // 127: aload 9
      // 129: aload 0
      // 12a: aload 0
      // 12b: aload 4
      // 12d: invokevirtual com/l7tech/gateway/api/ServiceDetail.getServiceMappings ()Ljava/util/List;
      // 130: ldc com/l7tech/gateway/api/ServiceDetail$HttpMapping
      // 132: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/util/Collection;Ljava/lang/Class;)Lcom/l7tech/gateway/api/ServiceDetail$ServiceMapping;
      // 135: checkcast com/l7tech/gateway/api/ServiceDetail$HttpMapping
      // 138: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Lcom/l7tech/gateway/api/ServiceDetail$HttpMapping;)Ljava/lang/String;
      // 13b: invokevirtual com/l7tech/gateway/common/service/PublishedService.setRoutingUri (Ljava/lang/String;)V
      // 13e: aload 9
      // 140: aload 0
      // 141: aload 0
      // 142: aload 4
      // 144: invokevirtual com/l7tech/gateway/api/ServiceDetail.getServiceMappings ()Ljava/util/List;
      // 147: ldc com/l7tech/gateway/api/ServiceDetail$HttpMapping
      // 149: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/util/Collection;Ljava/lang/Class;)Lcom/l7tech/gateway/api/ServiceDetail$ServiceMapping;
      // 14c: checkcast com/l7tech/gateway/api/ServiceDetail$HttpMapping
      // 14f: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.b (Lcom/l7tech/gateway/api/ServiceDetail$HttpMapping;)Ljava/util/Set;
      // 152: invokevirtual com/l7tech/gateway/common/service/PublishedService.setHttpMethods (Ljava/util/Set;)V
      // 155: aload 9
      // 157: aload 0
      // 158: aload 0
      // 159: aload 4
      // 15b: invokevirtual com/l7tech/gateway/api/ServiceDetail.getServiceMappings ()Ljava/util/List;
      // 15e: ldc com/l7tech/gateway/api/ServiceDetail$SoapMapping
      // 160: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/util/Collection;Ljava/lang/Class;)Lcom/l7tech/gateway/api/ServiceDetail$ServiceMapping;
      // 163: checkcast com/l7tech/gateway/api/ServiceDetail$SoapMapping
      // 166: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Lcom/l7tech/gateway/api/ServiceDetail$SoapMapping;)Z
      // 169: invokevirtual com/l7tech/gateway/common/service/PublishedService.setLaxResolution (Z)V
      // 16c: aload 9
      // 16e: invokevirtual com/l7tech/gateway/common/service/PublishedService.getPolicy ()Lcom/l7tech/policy/Policy;
      // 171: aload 0
      // 172: getfield com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.u Lcom/l7tech/external/assertions/gatewaymanagement/server/PolicyHelper;
      // 175: aload 7
      // 177: invokevirtual com/l7tech/gateway/api/Resource.getContent ()Ljava/lang/String;
      // 17a: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/PolicyHelper.validatePolicySyntax (Ljava/lang/String;)Ljava/lang/String;
      // 17d: invokevirtual com/l7tech/policy/Policy.setXml (Ljava/lang/String;)V
      // 180: aload 4
      // 182: invokevirtual com/l7tech/gateway/api/ServiceDetail.getProperties ()Ljava/util/Map;
      // 185: ifnull 1f4
      // 188: aload 4
      // 18a: invokevirtual com/l7tech/gateway/api/ServiceDetail.getProperties ()Ljava/util/Map;
      // 18d: invokeinterface java/util/Map.entrySet ()Ljava/util/Set; 1
      // 192: invokeinterface java/util/Set.iterator ()Ljava/util/Iterator; 1
      // 197: astore 11
      // 199: aload 11
      // 19b: invokeinterface java/util/Iterator.hasNext ()Z 1
      // 1a0: ifeq 1f4
      // 1a3: aload 11
      // 1a5: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1
      // 1aa: checkcast java/util/Map$Entry
      // 1ad: astore 12
      // 1af: aload 12
      // 1b1: invokeinterface java/util/Map$Entry.getKey ()Ljava/lang/Object; 1
      // 1b6: checkcast java/lang/String
      // 1b9: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 1bc: bipush 19
      // 1be: aaload
      // 1bf: invokevirtual java/lang/String.startsWith (Ljava/lang/String;)Z
      // 1c2: ifeq 1f1
      // 1c5: aload 9
      // 1c7: aload 12
      // 1c9: invokeinterface java/util/Map$Entry.getKey ()Ljava/lang/Object; 1
      // 1ce: checkcast java/lang/String
      // 1d1: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 1d4: bipush 19
      // 1d6: aaload
      // 1d7: invokevirtual java/lang/String.length ()I
      // 1da: invokevirtual java/lang/String.substring (I)Ljava/lang/String;
      // 1dd: aload 12
      // 1df: invokeinterface java/util/Map$Entry.getValue ()Ljava/lang/Object; 1
      // 1e4: invokevirtual java/lang/Object.toString ()Ljava/lang/String;
      // 1e7: invokevirtual com/l7tech/gateway/common/service/PublishedService.putProperty (Ljava/lang/String;Ljava/lang/String;)V
      // 1ea: goto 1f1
      // 1ed: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 1f0: athrow
      // 1f1: goto 199
      // 1f4: aload 0
      // 1f5: aload 9
      // 1f7: aload 4
      // 1f9: invokevirtual com/l7tech/gateway/api/ServiceDetail.getProperties ()Ljava/util/Map;
      // 1fc: ldc com/l7tech/gateway/common/service/PublishedService
      // 1fe: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.setProperties (Lcom/l7tech/objectmodel/PersistentEntity;Ljava/util/Map;Ljava/lang/Class;)V
      // 201: aload 0
      // 202: aload 9
      // 204: aload 0
      // 205: aload 4
      // 207: invokevirtual com/l7tech/gateway/api/ServiceDetail.getProperties ()Ljava/util/Map;
      // 20a: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 20d: bipush 4
      // 20e: aaload
      // 20f: invokestatic com/l7tech/util/Option.none ()Lcom/l7tech/util/Option;
      // 212: ldc java/lang/String
      // 214: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.getProperty (Ljava/util/Map;Ljava/lang/String;Lcom/l7tech/util/Option;Ljava/lang/Class;)Lcom/l7tech/util/Option;
      // 217: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Lcom/l7tech/gateway/common/service/PublishedService;Lcom/l7tech/util/Option;)V
      // 21a: aload 0
      // 21b: aload 9
      // 21d: aload 10
      // 21f: aload 8
      // 221: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Lcom/l7tech/gateway/common/service/PublishedService;Ljava/util/Collection;Ljava/util/Collection;)V
      // 224: aload 9
      // 226: new com/l7tech/gateway/common/service/ServiceDocumentWsdlStrategy
      // 229: dup
      // 22a: aload 10
      // 22c: invokespecial com/l7tech/gateway/common/service/ServiceDocumentWsdlStrategy.<init> (Ljava/util/Collection;)V
      // 22f: invokevirtual com/l7tech/gateway/common/service/PublishedService.parseWsdlStrategy (Lcom/l7tech/gateway/common/service/PublishedService$WsdlStrategy;)V
      // 232: aload 0
      // 233: aload 3
      // 234: aload 9
      // 236: iload 2
      // 237: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.doSecurityZoneFromResource (Lcom/l7tech/gateway/api/SecurityZoneableObject;Lcom/l7tech/objectmodel/PersistentEntity;Z)V
      // 23a: new com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag
      // 23d: dup
      // 23e: aload 9
      // 240: aload 10
      // 242: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.<init> (Lcom/l7tech/gateway/common/service/PublishedService;Ljava/util/Collection;)V
      // 245: areturn
      // try (0 -> 11): 11 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (19 -> 29): 29 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (38 -> 43): 44 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (41 -> 54): 54 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (114 -> 126): 126 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (188 -> 209): 210 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
   }

   protected EntityManagerResourceFactory.EntityBag<PublishedService> loadEntityBag(PublishedService var1) throws ObjectModelException {
      return new ServiceResourceFactory.ServiceEntityBag(var1, this.r.findByServiceIdAndType(var1.getGoid(), A[7]));
   }

   @Override
   protected void updateEntityBag(
      EntityManagerResourceFactory.EntityBag<PublishedService> param1, EntityManagerResourceFactory.EntityBag<PublishedService> param2
   ) throws ResourceFactory.InvalidResourceException {
      // $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 0
      // 001: aload 1
      // 002: ldc com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag
      // 004: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.cast (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
      // 007: checkcast com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag
      // 00a: astore 3
      // 00b: aload 3
      // 00c: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.getPublishedService ()Lcom/l7tech/gateway/common/service/PublishedService;
      // 00f: astore 4
      // 011: aload 0
      // 012: aload 2
      // 013: ldc com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag
      // 015: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.cast (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
      // 018: checkcast com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag
      // 01b: astore 5
      // 01d: aload 5
      // 01f: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.getPublishedService ()Lcom/l7tech/gateway/common/service/PublishedService;
      // 022: astore 6
      // 024: aload 4
      // 026: aload 0
      // 027: getfield com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.v Lcom/l7tech/external/assertions/gatewaymanagement/server/FolderResourceFactory;
      // 02a: aload 4
      // 02c: invokevirtual com/l7tech/gateway/common/service/PublishedService.getFolder ()Lcom/l7tech/objectmodel/folder/Folder;
      // 02f: aload 6
      // 031: invokevirtual com/l7tech/gateway/common/service/PublishedService.getFolder ()Lcom/l7tech/objectmodel/folder/Folder;
      // 034: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/FolderResourceFactory.a (Lcom/l7tech/objectmodel/folder/Folder;Lcom/l7tech/objectmodel/folder/Folder;)Lcom/l7tech/objectmodel/folder/Folder;
      // 037: invokevirtual com/l7tech/gateway/common/service/PublishedService.setFolder (Lcom/l7tech/objectmodel/folder/Folder;)V
      // 03a: aload 4
      // 03c: aload 6
      // 03e: invokevirtual com/l7tech/gateway/common/service/PublishedService.getName ()Ljava/lang/String;
      // 041: invokevirtual com/l7tech/gateway/common/service/PublishedService.setName (Ljava/lang/String;)V
      // 044: aload 4
      // 046: aload 6
      // 048: invokevirtual com/l7tech/gateway/common/service/PublishedService.isDisabled ()Z
      // 04b: invokevirtual com/l7tech/gateway/common/service/PublishedService.setDisabled (Z)V
      // 04e: aload 4
      // 050: aload 6
      // 052: invokevirtual com/l7tech/gateway/common/service/PublishedService.getRoutingUri ()Ljava/lang/String;
      // 055: invokevirtual com/l7tech/gateway/common/service/PublishedService.setRoutingUri (Ljava/lang/String;)V
      // 058: aload 4
      // 05a: aload 6
      // 05c: invokevirtual com/l7tech/gateway/common/service/PublishedService.getHttpMethodsReadOnly ()Ljava/util/Set;
      // 05f: invokevirtual com/l7tech/gateway/common/service/PublishedService.setHttpMethods (Ljava/util/Set;)V
      // 062: aload 4
      // 064: aload 6
      // 066: invokevirtual com/l7tech/gateway/common/service/PublishedService.isLaxResolution ()Z
      // 069: invokevirtual com/l7tech/gateway/common/service/PublishedService.setLaxResolution (Z)V
      // 06c: aload 4
      // 06e: aload 6
      // 070: invokevirtual com/l7tech/gateway/common/service/PublishedService.isWssProcessingEnabled ()Z
      // 073: invokevirtual com/l7tech/gateway/common/service/PublishedService.setWssProcessingEnabled (Z)V
      // 076: aload 4
      // 078: aload 6
      // 07a: invokevirtual com/l7tech/gateway/common/service/PublishedService.getSecurityZone ()Lcom/l7tech/objectmodel/SecurityZone;
      // 07d: invokevirtual com/l7tech/gateway/common/service/PublishedService.setSecurityZone (Lcom/l7tech/objectmodel/SecurityZone;)V
      // 080: aload 6
      // 082: invokevirtual com/l7tech/gateway/common/service/PublishedService.soapVersionSet ()Z
      // 085: ifeq 099
      // 088: aload 4
      // 08a: aload 6
      // 08c: invokevirtual com/l7tech/gateway/common/service/PublishedService.getSoapVersion ()Lcom/l7tech/xml/soap/SoapVersion;
      // 08f: invokevirtual com/l7tech/gateway/common/service/PublishedService.setSoapVersion (Lcom/l7tech/xml/soap/SoapVersion;)V
      // 092: goto 099
      // 095: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 098: athrow
      // 099: aload 4
      // 09b: aload 6
      // 09d: invokevirtual com/l7tech/gateway/common/service/PublishedService.getProperties ()Ljava/util/Map;
      // 0a0: invokevirtual com/l7tech/gateway/common/service/PublishedService.setProperties (Ljava/util/Map;)V
      // 0a3: aload 4
      // 0a5: invokevirtual com/l7tech/gateway/common/service/PublishedService.getPolicy ()Lcom/l7tech/policy/Policy;
      // 0a8: aload 6
      // 0aa: invokevirtual com/l7tech/gateway/common/service/PublishedService.getPolicy ()Lcom/l7tech/policy/Policy;
      // 0ad: invokevirtual com/l7tech/policy/Policy.getXml ()Ljava/lang/String;
      // 0b0: invokevirtual com/l7tech/policy/Policy.setXml (Ljava/lang/String;)V
      // 0b3: aload 0
      // 0b4: aload 1
      // 0b5: aload 2
      // 0b6: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Lcom/l7tech/external/assertions/gatewaymanagement/server/EntityManagerResourceFactory$EntityBag;Lcom/l7tech/external/assertions/gatewaymanagement/server/EntityManagerResourceFactory$EntityBag;)Z
      // 0b9: istore 7
      // 0bb: aload 0
      // 0bc: getfield com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.t Lcom/l7tech/server/uddi/ServiceWsdlUpdateChecker;
      // 0bf: aload 6
      // 0c1: invokevirtual com/l7tech/server/uddi/ServiceWsdlUpdateChecker.isWsdlUpdatePermitted (Lcom/l7tech/gateway/common/service/PublishedService;)Z
      // 0c4: ifne 0e8
      // 0c7: iload 7
      // 0c9: ifeq 0e8
      // 0cc: goto 0d3
      // 0cf: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0d2: athrow
      // 0d3: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 0d6: dup
      // 0d7: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.INVALID_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 0da: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 0dd: bipush 24
      // 0df: aaload
      // 0e0: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 0e3: athrow
      // 0e4: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0e7: athrow
      // 0e8: goto 0f7
      // 0eb: astore 8
      // 0ed: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // 0f0: dup
      // 0f1: aload 8
      // 0f3: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException.<init> (Ljava/lang/Throwable;)V
      // 0f6: athrow
      // 0f7: iload 7
      // 0f9: ifeq 13c
      // 0fc: aload 4
      // 0fe: aload 6
      // 100: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlUrl ()Ljava/lang/String;
      // 103: invokevirtual com/l7tech/gateway/common/service/PublishedService.setWsdlUrl (Ljava/lang/String;)V
      // 106: goto 119
      // 109: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 10c: athrow
      // 10d: astore 8
      // 10f: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // 112: dup
      // 113: aload 8
      // 115: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException.<init> (Ljava/lang/Throwable;)V
      // 118: athrow
      // 119: aload 4
      // 11b: aload 6
      // 11d: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlXml ()Ljava/lang/String;
      // 120: invokevirtual com/l7tech/gateway/common/service/PublishedService.setWsdlXml (Ljava/lang/String;)V
      // 123: aload 3
      // 124: aload 5
      // 126: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.getServiceDocuments ()Ljava/util/Collection;
      // 129: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.replaceServiceDocuments (Ljava/util/Collection;)V
      // 12c: aload 4
      // 12e: new com/l7tech/gateway/common/service/ServiceDocumentWsdlStrategy
      // 131: dup
      // 132: aload 3
      // 133: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.getServiceDocuments ()Ljava/util/Collection;
      // 136: invokespecial com/l7tech/gateway/common/service/ServiceDocumentWsdlStrategy.<init> (Ljava/util/Collection;)V
      // 139: invokevirtual com/l7tech/gateway/common/service/PublishedService.parseWsdlStrategy (Lcom/l7tech/gateway/common/service/PublishedService$WsdlStrategy;)V
      // 13c: return
      // try (85 -> 98): 98 com/l7tech/objectmodel/UpdateException
      // try (80 -> 87): 88 com/l7tech/objectmodel/UpdateException
      // try (18 -> 62): 63 com/l7tech/objectmodel/UpdateException
      // try (80 -> 100): 101 com/l7tech/objectmodel/UpdateException
      // try (109 -> 113): 116 java/net/MalformedURLException
      // try (107 -> 114): 114 com/l7tech/objectmodel/UpdateException
   }

   @Override
   protected void beforeCreateEntity(EntityManagerResourceFactory.EntityBag<PublishedService> var1) throws ObjectModelException {
      ServiceResourceFactory.ServiceEntityBag var2 = this.cast(var1, ServiceResourceFactory.ServiceEntityBag.class);
      PublishedService var3 = var2.getPublishedService();
      Policy var4 = var3.getPolicy();

      try {
         this.u.checkPolicyAssertionAccess(var4);
      } catch (ResourceFactory.InvalidResourceException var7) {
         throw new SaveException(var7);
      }

      label32: {
         try {
            var3.setInternal(false);
            if (var4 == null) {
               return;
            }

            if (var4.getGuid() != null) {
               break label32;
            }
         } catch (ResourceFactory.InvalidResourceException var8) {
            throw a(var8);
         }

         UUID var5 = UUID.randomUUID();
         var4.setGuid(var5.toString());
      }

      try {
         if (var4.getName() == null) {
            var4.setName(var3.generatePolicyName());
         }
      } catch (ResourceFactory.InvalidResourceException var6) {
         throw a(var6);
      }
   }

   @Override
   protected void afterCreateEntity(EntityManagerResourceFactory.EntityBag<PublishedService> var1, Goid var2) throws ObjectModelException {
      ServiceResourceFactory.ServiceEntityBag var3 = this.cast(var1, ServiceResourceFactory.ServiceEntityBag.class);

      for (ServiceDocument var6 : var3.getServiceDocuments()) {
         var6.setGoid(ServiceDocument.DEFAULT_GOID);
         var6.setServiceId(var2);
         this.r.save(var6);
      }
   }

   @Override
   protected void afterUpdateEntity(EntityManagerResourceFactory.EntityBag<PublishedService> var1) throws ObjectModelException {
      ServiceResourceFactory.ServiceEntityBag var2 = this.cast(var1, ServiceResourceFactory.ServiceEntityBag.class);
      Goid var3 = var2.getPublishedService().getGoid();
      if (var2.serviceDocumentsReplaced()) {
         for (ServiceDocument var6 : this.r.findByServiceId(var3)) {
            this.r.delete(var6);
         }

         for (ServiceDocument var8 : var2.getServiceDocuments()) {
            var8.setGoid(ServiceDocument.DEFAULT_GOID);
            var8.setServiceId(var3);
            this.r.save(var8);
         }
      }
   }

   private List<ServiceMapping> a(PublishedService var1) {
      ArrayList var2 = new ArrayList();
      HttpMapping var3 = ManagedObjectFactory.createHttpMapping();
      var3.setUrlPattern(var1.getRoutingUri());
      var3.setVerbs(Functions.map(var1.getHttpMethodsReadOnly(), new c6(this)));
      var2.add(var3);
      if (var1.isSoap()) {
         SoapMapping var4 = ManagedObjectFactory.createSoapMapping();
         var4.setLax(var1.isLaxResolution());
         var2.add(var4);
      }

      return var2;
   }

   private ResourceSet a(Policy var1) {
      ResourceSet var2 = ManagedObjectFactory.createResourceSet();
      String[] var5 = A;
      var2.setTag(var5[9]);
      Resource var3 = ManagedObjectFactory.createResource();
      var2.setResources(Collections.singletonList(var3));
      var3.setType(var5[10]);

      try {
         var3.setContent(WspWriter.getPolicyXml(var1.getAssertion()));
      } catch (IOException var7) {
         throw new ResourceFactory.ResourceAccessException(A[17], var7);
      }

      try {
         if (var1.getVersion() != -1) {
            var3.setVersion(var1.getVersion());
         }

         return var2;
      } catch (IOException var6) {
         throw a(var6);
      }
   }

   private ResourceSet a(PublishedService var1, Collection<ServiceDocument> var2) {
      ResourceSet var3 = ManagedObjectFactory.createResourceSet();
      String[] var8 = A;
      var3.setTag(var8[16]);
      var3.setRootUrl(var1.getWsdlUrl());
      var3.setResources(new ArrayList());
      Resource var4 = ManagedObjectFactory.createResource();
      var4.setType(var8[16]);
      var4.setContent(var1.getWsdlXml());
      var4.setSourceUrl(var1.getWsdlUrl());
      var3.getResources().add(var4);

      for (ServiceDocument var6 : var2) {
         Resource var7 = ManagedObjectFactory.createResource();
         var7.setType(this.w.a(var6.getUri(), var6.getContents(), A[16]));
         var7.setContent(var6.getContents());
         var7.setSourceUrl(var6.getUri());
         var3.getResources().add(var7);
      }

      return var3;
   }

   private <MT extends ServiceMapping> MT a(Collection<? extends ServiceMapping> param1, Class<MT> param2) throws ResourceFactory.InvalidResourceException {
      // $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: aconst_null
      // 01: astore 3
      // 02: aload 1
      // 03: ifnull 53
      // 06: aload 1
      // 07: invokeinterface java/util/Collection.iterator ()Ljava/util/Iterator; 1
      // 0c: astore 4
      // 0e: aload 4
      // 10: invokeinterface java/util/Iterator.hasNext ()Z 1
      // 15: ifeq 53
      // 18: aload 4
      // 1a: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1
      // 1f: checkcast com/l7tech/gateway/api/ServiceDetail$ServiceMapping
      // 22: astore 5
      // 24: aload 2
      // 25: aload 5
      // 27: invokevirtual java/lang/Class.isInstance (Ljava/lang/Object;)Z
      // 2a: ifeq 50
      // 2d: aload 3
      // 2e: ifnull 4d
      // 31: goto 38
      // 34: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 37: athrow
      // 38: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 3b: dup
      // 3c: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.INVALID_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 3f: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 42: bipush 11
      // 44: aaload
      // 45: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 48: athrow
      // 49: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 4c: athrow
      // 4d: aload 5
      // 4f: astore 3
      // 50: goto 0e
      // 53: aload 3
      // 54: areturn
      // try (14 -> 20): 21 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (18 -> 31): 31 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
   }

   private String a(HttpMapping var1) {
      String var2 = null;
      if (var1 != null) {
         var2 = var1.getUrlPattern();
      }

      return var2;
   }

   private Set<HttpMethod> b(HttpMapping var1) throws ResourceFactory.InvalidResourceException {
      EnumSet var2 = EnumSet.of(HttpMethod.POST);
      if (var1 != null) {
         List var3 = var1.getVerbs();
         if (var3 != null) {
            var2.clear();

            for (String var5 : var3) {
               try {
                  var2.add(HttpMethod.valueOf(var5));
               } catch (IllegalArgumentException var7) {
                  throw new ResourceFactory.InvalidResourceException(ResourceFactory.InvalidResourceException.ExceptionType.INVALID_VALUES, A[26] + var5 + "'");
               }
            }
         }
      }

      return var2;
   }

   private boolean a(SoapMapping var1) {
      boolean var2 = false;
      if (var1 != null) {
         var2 = var1.isLax();
      }

      return var2;
   }

   private void a(PublishedService param1, Collection<ServiceDocument> param2, Collection<Resource> param3) throws ResourceFactory.InvalidResourceException {
      // $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 3
      // 001: ifnull 111
      // 004: bipush 1
      // 005: istore 4
      // 007: aload 3
      // 008: invokeinterface java/util/Collection.iterator ()Ljava/util/Iterator; 1
      // 00d: astore 5
      // 00f: aload 5
      // 011: invokeinterface java/util/Iterator.hasNext ()Z 1
      // 016: ifeq 111
      // 019: aload 5
      // 01b: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1
      // 020: checkcast com/l7tech/gateway/api/Resource
      // 023: astore 6
      // 025: aload 0
      // 026: getfield com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.w Lcom/l7tech/external/assertions/gatewaymanagement/server/cr;
      // 029: aload 6
      // 02b: invokevirtual com/l7tech/gateway/api/Resource.getSourceUrl ()Ljava/lang/String;
      // 02e: aload 6
      // 030: invokevirtual com/l7tech/gateway/api/Resource.getContent ()Ljava/lang/String;
      // 033: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 036: astore 8
      // 038: aload 8
      // 03a: bipush 16
      // 03c: aaload
      // 03d: bipush 1
      // 03e: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/cr.a (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
      // 041: pop
      // 042: iload 4
      // 044: ifeq 085
      // 047: bipush 0
      // 048: istore 4
      // 04a: aload 1
      // 04b: aload 6
      // 04d: invokevirtual com/l7tech/gateway/api/Resource.getSourceUrl ()Ljava/lang/String;
      // 050: invokevirtual com/l7tech/gateway/common/service/PublishedService.setWsdlUrl (Ljava/lang/String;)V
      // 053: goto 079
      // 056: astore 7
      // 058: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 05b: dup
      // 05c: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.INVALID_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 05f: aload 6
      // 061: invokevirtual com/l7tech/gateway/api/Resource.getSourceUrl ()Ljava/lang/String;
      // 064: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 067: astore 8
      // 069: aload 8
      // 06b: bipush 5
      // 06c: aaload
      // 06d: swap
      // 06e: ldc "'"
      // 070: 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" ]
      // 075: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 078: athrow
      // 079: aload 1
      // 07a: aload 6
      // 07c: invokevirtual com/l7tech/gateway/api/Resource.getContent ()Ljava/lang/String;
      // 07f: invokevirtual com/l7tech/gateway/common/service/PublishedService.setWsdlXml (Ljava/lang/String;)V
      // 082: goto 10e
      // 085: new com/l7tech/gateway/common/service/ServiceDocument
      // 088: dup
      // 089: invokespecial com/l7tech/gateway/common/service/ServiceDocument.<init> ()V
      // 08c: astore 7
      // 08e: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 091: bipush 16
      // 093: aaload
      // 094: aload 6
      // 096: invokevirtual com/l7tech/gateway/api/Resource.getType ()Ljava/lang/String;
      // 099: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 09c: ifne 0d8
      // 09f: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 0a2: bipush 23
      // 0a4: aaload
      // 0a5: aload 6
      // 0a7: invokevirtual com/l7tech/gateway/api/Resource.getType ()Ljava/lang/String;
      // 0aa: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 0ad: ifne 0d8
      // 0b0: goto 0b7
      // 0b3: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0b6: athrow
      // 0b7: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 0ba: dup
      // 0bb: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.INVALID_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 0be: aload 6
      // 0c0: invokevirtual com/l7tech/gateway/api/Resource.getType ()Ljava/lang/String;
      // 0c3: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 0c6: bipush 0
      // 0c7: aaload
      // 0c8: swap
      // 0c9: ldc "'"
      // 0cb: 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" ]
      // 0d0: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 0d3: athrow
      // 0d4: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0d7: athrow
      // 0d8: aload 7
      // 0da: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.A [Ljava/lang/String;
      // 0dd: astore 8
      // 0df: aload 8
      // 0e1: bipush 7
      // 0e3: aaload
      // 0e4: invokevirtual com/l7tech/gateway/common/service/ServiceDocument.setType (Ljava/lang/String;)V
      // 0e7: aload 7
      // 0e9: aload 8
      // 0eb: bipush 15
      // 0ed: aaload
      // 0ee: invokevirtual com/l7tech/gateway/common/service/ServiceDocument.setContentType (Ljava/lang/String;)V
      // 0f1: aload 7
      // 0f3: aload 6
      // 0f5: invokevirtual com/l7tech/gateway/api/Resource.getSourceUrl ()Ljava/lang/String;
      // 0f8: invokevirtual com/l7tech/gateway/common/service/ServiceDocument.setUri (Ljava/lang/String;)V
      // 0fb: aload 7
      // 0fd: aload 6
      // 0ff: invokevirtual com/l7tech/gateway/api/Resource.getContent ()Ljava/lang/String;
      // 102: invokevirtual com/l7tech/gateway/common/service/ServiceDocument.setContents (Ljava/lang/String;)V
      // 105: aload 2
      // 106: aload 7
      // 108: invokeinterface java/util/Collection.add (Ljava/lang/Object;)Z 2
      // 10d: pop
      // 10e: goto 00f
      // 111: return
      // try (32 -> 36): 37 java/net/MalformedURLException
      // try (62 -> 76): 77 java/net/MalformedURLException
      // try (69 -> 92): 92 java/net/MalformedURLException
   }

   private boolean a(EntityManagerResourceFactory.EntityBag<PublishedService> param1, EntityManagerResourceFactory.EntityBag<PublishedService> 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:
      // 000: aload 0
      // 001: aload 1
      // 002: ldc com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag
      // 004: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.cast (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
      // 007: checkcast com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag
      // 00a: astore 4
      // 00c: aload 4
      // 00e: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.getPublishedService ()Lcom/l7tech/gateway/common/service/PublishedService;
      // 011: astore 5
      // 013: aload 4
      // 015: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.getServiceDocuments ()Ljava/util/Collection;
      // 018: astore 6
      // 01a: aload 0
      // 01b: aload 2
      // 01c: ldc com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag
      // 01e: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.cast (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
      // 021: checkcast com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag
      // 024: astore 7
      // 026: aload 7
      // 028: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.getPublishedService ()Lcom/l7tech/gateway/common/service/PublishedService;
      // 02b: astore 8
      // 02d: aload 7
      // 02f: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory$ServiceEntityBag.getServiceDocuments ()Ljava/util/Collection;
      // 032: astore 9
      // 034: aload 5
      // 036: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlXml ()Ljava/lang/String;
      // 039: ifnull 0f9
      // 03c: aload 5
      // 03e: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlXml ()Ljava/lang/String;
      // 041: aload 8
      // 043: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlXml ()Ljava/lang/String;
      // 046: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 049: ifne 05b
      // 04c: goto 053
      // 04f: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 052: athrow
      // 053: bipush 1
      // 054: goto 05c
      // 057: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 05a: athrow
      // 05b: bipush 0
      // 05c: istore 3
      // 05d: iload 3
      // 05e: ifne 0a6
      // 061: aload 5
      // 063: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlUrl ()Ljava/lang/String;
      // 066: ifnull 094
      // 069: goto 070
      // 06c: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 06f: athrow
      // 070: aload 5
      // 072: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlUrl ()Ljava/lang/String;
      // 075: aload 8
      // 077: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlUrl ()Ljava/lang/String;
      // 07a: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 07d: ifne 08f
      // 080: goto 087
      // 083: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 086: athrow
      // 087: bipush 1
      // 088: goto 090
      // 08b: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 08e: athrow
      // 08f: bipush 0
      // 090: istore 3
      // 091: goto 0a6
      // 094: aload 8
      // 096: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlUrl ()Ljava/lang/String;
      // 099: ifnull 0a4
      // 09c: bipush 1
      // 09d: goto 0a5
      // 0a0: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0a3: athrow
      // 0a4: bipush 0
      // 0a5: istore 3
      // 0a6: iload 3
      // 0a7: ifne 0cc
      // 0aa: aload 6
      // 0ac: invokeinterface java/util/Collection.size ()I 1
      // 0b1: aload 9
      // 0b3: invokeinterface java/util/Collection.size ()I 1
      // 0b8: if_icmpeq 0ca
      // 0bb: goto 0c2
      // 0be: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0c1: athrow
      // 0c2: bipush 1
      // 0c3: goto 0cb
      // 0c6: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0c9: athrow
      // 0ca: bipush 0
      // 0cb: istore 3
      // 0cc: iload 3
      // 0cd: ifne 10b
      // 0d0: aload 0
      // 0d1: aload 6
      // 0d3: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/util/Collection;)Ljava/util/Map;
      // 0d6: astore 10
      // 0d8: aload 0
      // 0d9: aload 9
      // 0db: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/util/Collection;)Ljava/util/Map;
      // 0de: astore 11
      // 0e0: aload 10
      // 0e2: aload 11
      // 0e4: invokeinterface java/util/Map.equals (Ljava/lang/Object;)Z 2
      // 0e9: ifne 0f4
      // 0ec: bipush 1
      // 0ed: goto 0f5
      // 0f0: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0f3: athrow
      // 0f4: bipush 0
      // 0f5: istore 3
      // 0f6: goto 10b
      // 0f9: aload 8
      // 0fb: invokevirtual com/l7tech/gateway/common/service/PublishedService.getWsdlXml ()Ljava/lang/String;
      // 0fe: ifnull 109
      // 101: bipush 1
      // 102: goto 10a
      // 105: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ServiceResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 108: athrow
      // 109: bipush 0
      // 10a: istore 3
      // 10b: iload 3
      // 10c: ireturn
      // try (24 -> 33): 34 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (27 -> 38): 38 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (42 -> 47): 48 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (44 -> 56): 57 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (50 -> 61): 61 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (66 -> 71): 71 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (75 -> 82): 83 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (77 -> 87): 87 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (101 -> 107): 107 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (112 -> 117): 117 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
   }

   private Map<String, String> a(Collection<ServiceDocument> var1) {
      HashMap var2 = new HashMap();
      if (var1 != null) {
         for (ServiceDocument var4 : var1) {
            try {
               if (!A[14].equals(var4.getType())) {
                  continue;
               }
            } catch (ResourceFactory.ResourceAccessException var7) {
               throw a(var7);
            }

            String var5 = var4.getUri();
            String var6 = var4.getContents();
            var2.put(var5, var6);
         }
      }

      return var2;
   }

   private void a(PublishedService var1, Option<String> var2) throws ResourceFactory.InvalidResourceException {
      if (var1.isSoap()) {
         SoapVersion var3 = this.a(var2.map(TextUtils.trim()));

         try {
            if (var3 != null) {
               var1.setSoapVersion(var3);
            }
         } catch (ResourceFactory.InvalidResourceException var4) {
            throw a(var4);
         }
      }
   }

   private String a(SoapVersion var1) {
      String var10000;
      label20: {
         try {
            if (var1 != null) {
               var10000 = var1.getVersionNumber();
               break label20;
            }
         } catch (ResourceFactory.ResourceAccessException var3) {
            throw a(var3);
         }

         var10000 = "";
      }

      String var2 = var10000;
      if (var2.isEmpty()) {
         var2 = A[21];
      }

      return var2;
   }

   private SoapVersion a(Option<String> var1) throws ResourceFactory.InvalidResourceException {
      SoapVersion var2 = null;

      label51: {
         label56: {
            try {
               if (!var1.isSome()) {
                  return var2;
               }

               if (A[22].equals(var1.some())) {
                  break label56;
               }
            } catch (ResourceFactory.InvalidResourceException var9) {
               throw a(var9);
            }

            SoapVersion[] var3 = SoapVersion.values();
            int var4 = var3.length;
            int var5 = 0;

            SoapVersion var6;
            while (true) {
               if (var5 >= var4) {
                  break label51;
               }

               var6 = var3[var5];

               try {
                  if (!var6.getVersionNumber().isEmpty() && var6.getVersionNumber().equals(var1.some())) {
                     break;
                  }
               } catch (ResourceFactory.InvalidResourceException var8) {
                  throw a(var8);
               }

               var5++;
            }

            var2 = var6;
            break label51;
         }

         var2 = SoapVersion.UNKNOWN;
      }

      try {
         if (var2 == null) {
            throw new ResourceFactory.InvalidResourceException(ResourceFactory.InvalidResourceException.ExceptionType.INVALID_VALUES, A[3]);
         }
      } catch (ResourceFactory.InvalidResourceException var7) {
         throw a(var7);
      }

      return var2;
   }

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

   static {
      String[] var5 = new String[27];
      int var3 = 0;
      String var2 = "k\u000f7m\u001d/Bj\u000465:\u0019eRA p\u001e%Tl\u000275\u00193Q{Au\u000en\u000e>|\u000e3s{\u0017;f\u0004%O\u0004i\u00126y\u0013k\u000f9{\u0002=O>\u0012=t\u001d\u001cDl\u0012;z\u0003\u000bm\u000e3e;/Sm\b={\u001bw\u000f$t\u0001#E>6\u0001Q!jS{\u0012=`\u001f)D>4\u0000YMm\nv\u0000!G\u0002?Uw\u000f5\u000bI2\u0016Y@\u0003lN.\u0000A\u001d]\u000e'y\tjOq\u0015rg\b>Sw\u0004$pM:Nr\b1lM2Lr\u0006n\u000e>|\u000e3\u0006n\u000e>|\u000e3\u0019z\u0014\"y\u0004)@j\u0004rf\b8Ww\u000275\u0000+Qn\b<r\u0010{\u0019\"p\u000e>DzA!p\u001f<H}\u0004\tn\u0013=e\b8UgO\u000bI2\u0016Y@\u0003lN.\u0000A\bj\u0004*aB2Lr\u0004i\u00126y\u001d]\u000e'y\tjOq\u0015rg\b>Sw\u0004$pM:Nr\b1lM2Lr\u000fs\b!f\u0004$F>\u00057a\f#Mm\tn\u0013=e\b8UgO\u000bm\u000e3e;/Sm\b={\u000bk\u000f!e\b)Hx\b7q\u000bk\u000f!e\b)Hx\b7q\tf\f>f\u000e\"Ds\u0000\u0019I2\u0016YM?Qz\u0000&pM$NjA\"p\u001f'Hj\u00157q";
      int var4 = "k\u000f7m\u001d/Bj\u000465:\u0019eRA p\u001e%Tl\u000275\u00193Q{Au\u000en\u000e>|\u000e3s{\u0017;f\u0004%O\u0004i\u00126y\u0013k\u000f9{\u0002=O>\u0012=t\u001d\u001cDl\u0012;z\u0003\u000bm\u000e3e;/Sm\b={\u001bw\u000f$t\u0001#E>6\u0001Q!jS{\u0012=`\u001f)D>4\u0000YMm\nv\u0000!G\u0002?Uw\u000f5\u000bI2\u0016Y@\u0003lN.\u0000A\u001d]\u000e'y\tjOq\u0015rg\b>Sw\u0004$pM:Nr\b1lM2Lr\u0006n\u000e>|\u000e3\u0006n\u000e>|\u000e3\u0019z\u0014\"y\u0004)@j\u0004rf\b8Ww\u000275\u0000+Qn\b<r\u0010{\u0019\"p\u000e>DzA!p\u001f<H}\u0004\tn\u0013=e\b8UgO\u000bI2\u0016Y@\u0003lN.\u0000A\bj\u0004*aB2Lr\u0004i\u00126y\u001d]\u000e'y\tjOq\u0015rg\b>Sw\u0004$pM:Nr\b1lM2Lr\u000fs\b!f\u0004$F>\u00057a\f#Mm\tn\u0013=e\b8UgO\u000bm\u000e3e;/Sm\b={\u000bk\u000f!e\b)Hx\b7q\u000bk\u000f!e\b)Hx\b7q\tf\f>f\u000e\"Ds\u0000\u0019I2\u0016YM?Qz\u0000&pM$NjA\"p\u001f'Hj\u00157q"
         .length();
      char var1 = 31;
      int var7 = -1;

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

         while (true) {
            String var8 = d(var10000, a(var10001));
            switch (var10002) {
               case 0:
                  var5[var3++] = var8;
                  if ((var7 += var1) >= var4) {
                     A = var5;
                     String[] var9 = A;
                     o = A[7];
                     p = var9[19];
                     UNKNOWN_SOAP_VERSION = var9[22];
                     return;
                  }

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

                  var2 = "e3\u0003L5\u0005<M3\u001b\b6\u0018iM8\u0013J2\u0019I<\u001ex\u0003\u0014;|\u0000WjF.\r\bw";
                  var4 = "e3\u0003L5\u0005<M3\u001b\b6\u0018iM8\u0013J2\u0019I<\u001ex\u0003\u0014;|\u0000WjF.\r\bw".length();
                  var1 = 16;
                  var7 = -1;
            }

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

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

      return var10000;
   }

   private static String d(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 -> 62;
            case 1 -> 65;
            case 2 -> 114;
            case 3 -> 53;
            case 4 -> 77;
            case 5 -> 106;
            default -> 1;
         });
      }

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

   public static class ServiceEntityBag extends EntityManagerResourceFactory.EntityBag<PublishedService> {
      private boolean b = false;
      private Collection<ServiceDocument> c;

      protected ServiceEntityBag(PublishedService var1, Collection<ServiceDocument> var2) {
         super(var1);
         this.c = Collections.unmodifiableCollection(var2);
      }

      protected void replaceServiceDocuments(Collection<ServiceDocument> var1) {
         this.b = true;
         this.c = Collections.unmodifiableCollection(var1);
      }

      protected PublishedService getPublishedService() {
         return this.getEntity();
      }

      public Collection<ServiceDocument> getServiceDocuments() {
         return this.c;
      }

      protected boolean serviceDocumentsReplaced() {
         return this.b;
      }

      @Override
      public Iterator<PersistentEntity> iterator() {
         ArrayList var1 = new ArrayList();
         var1.add(this.getPublishedService());
         var1.addAll(this.getServiceDocuments());
         return var1.iterator();
      }
   }
}
