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

import com.l7tech.gateway.api.ResourceDocumentMO;
import com.l7tech.gateway.common.resources.ResourceEntry;
import com.l7tech.gateway.common.resources.ResourceEntryHeader;
import com.l7tech.server.globalresources.ResourceEntryManager;
import com.l7tech.server.security.rbac.RbacServices;
import com.l7tech.server.security.rbac.SecurityFilter;
import com.l7tech.server.security.rbac.SecurityZoneManager;
import com.l7tech.util.ConfigFactory;
import com.l7tech.util.Either;
import com.l7tech.util.Eithers;
import java.util.Map;
import org.springframework.transaction.PlatformTransactionManager;
import org.xml.sax.EntityResolver;

@ResourceFactory.ResourceType(type = ResourceDocumentMO.class)
public class DocumentResourceFactory extends SecurityZoneableEntityManagerResourceFactory<ResourceDocumentMO, ResourceEntry, ResourceEntryHeader> {
   private static final Boolean o;
   private static final String p;
   private static final String q;
   private final EntityResolver r;
   private final ResourceEntryManager s;
   private static final String[] t;

   public DocumentResourceFactory(
      RbacServices var1, SecurityFilter var2, PlatformTransactionManager var3, ResourceEntryManager var4, EntityResolver var5, SecurityZoneManager var6
   ) {
      super(false, true, var1, var2, var3, var4, var6);
      this.s = var4;
      this.r = var5;
   }

   public ResourceDocumentMO asResource(ResourceEntry 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:
      // 00: invokestatic com/l7tech/gateway/api/ManagedObjectFactory.createResourceDocument ()Lcom/l7tech/gateway/api/ResourceDocumentMO;
      // 03: astore 2
      // 04: invokestatic com/l7tech/gateway/api/ManagedObjectFactory.createResource ()Lcom/l7tech/gateway/api/Resource;
      // 07: astore 3
      // 08: aload 3
      // 09: aload 1
      // 0a: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getContent ()Ljava/lang/String;
      // 0d: invokevirtual com/l7tech/gateway/api/Resource.setContent (Ljava/lang/String;)V
      // 10: aload 3
      // 11: aload 1
      // 12: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getUri ()Ljava/lang/String;
      // 15: invokevirtual com/l7tech/gateway/api/Resource.setSourceUrl (Ljava/lang/String;)V
      // 18: aload 2
      // 19: aload 0
      // 1a: aload 1
      // 1b: ldc com/l7tech/gateway/common/resources/ResourceEntry
      // 1d: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.getProperties (Lcom/l7tech/objectmodel/PersistentEntity;Ljava/lang/Class;)Ljava/util/Map;
      // 20: invokevirtual com/l7tech/gateway/api/ResourceDocumentMO.setProperties (Ljava/util/Map;)V
      // 23: getstatic com/l7tech/external/assertions/gatewaymanagement/server/v.a [I
      // 26: aload 1
      // 27: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getType ()Lcom/l7tech/gateway/common/resources/ResourceType;
      // 2a: invokevirtual com/l7tech/gateway/common/resources/ResourceType.ordinal ()I
      // 2d: iaload
      // 2e: lookupswitch 120 2 1 26 2 76
      // 48: aload 3
      // 49: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 4c: bipush 5
      // 4d: aaload
      // 4e: invokevirtual com/l7tech/gateway/api/Resource.setType (Ljava/lang/String;)V
      // 51: aload 1
      // 52: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getResourceKey1 ()Ljava/lang/String;
      // 55: ifnull a6
      // 58: goto 5f
      // 5b: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 5e: athrow
      // 5f: aload 2
      // 60: invokevirtual com/l7tech/gateway/api/ResourceDocumentMO.getProperties ()Ljava/util/Map;
      // 63: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 66: bipush 10
      // 68: aaload
      // 69: aload 1
      // 6a: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getResourceKey1 ()Ljava/lang/String;
      // 6d: invokeinterface java/util/Map.put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 3
      // 72: pop
      // 73: goto a6
      // 76: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 79: athrow
      // 7a: aload 3
      // 7b: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 7e: bipush 11
      // 80: aaload
      // 81: invokevirtual com/l7tech/gateway/api/Resource.setType (Ljava/lang/String;)V
      // 84: aload 1
      // 85: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getResourceKey1 ()Ljava/lang/String;
      // 88: ifnull a6
      // 8b: aload 2
      // 8c: invokevirtual com/l7tech/gateway/api/ResourceDocumentMO.getProperties ()Ljava/util/Map;
      // 8f: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 92: bipush 13
      // 94: aaload
      // 95: aload 1
      // 96: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getResourceKey1 ()Ljava/lang/String;
      // 99: invokeinterface java/util/Map.put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 3
      // 9e: pop
      // 9f: goto a6
      // a2: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // a5: athrow
      // a6: aload 2
      // a7: aload 3
      // a8: invokevirtual com/l7tech/gateway/api/ResourceDocumentMO.setResource (Lcom/l7tech/gateway/api/Resource;)V
      // ab: aload 0
      // ac: aload 2
      // ad: aload 1
      // ae: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.doSecurityZoneAsResource (Lcom/l7tech/gateway/api/SecurityZoneableObject;Lcom/l7tech/objectmodel/PersistentEntity;)V
      // b1: aload 2
      // b2: areturn
      // try (4 -> 32): 33 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (24 -> 45): 45 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
      // try (47 -> 64): 65 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceAccessException
   }

   public ResourceEntry fromResource(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/ResourceDocumentMO
      // 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/DocumentResourceFactory.t [Ljava/lang/String;
      // 011: bipush 15
      // 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/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 01b: athrow
      // 01c: aload 1
      // 01d: checkcast com/l7tech/gateway/api/ResourceDocumentMO
      // 020: astore 3
      // 021: new com/l7tech/gateway/common/resources/ResourceEntry
      // 024: dup
      // 025: invokespecial com/l7tech/gateway/common/resources/ResourceEntry.<init> ()V
      // 028: astore 4
      // 02a: aload 3
      // 02b: invokevirtual com/l7tech/gateway/api/ResourceDocumentMO.getResource ()Lcom/l7tech/gateway/api/Resource;
      // 02e: astore 5
      // 030: aload 5
      // 032: ifnonnull 04a
      // 035: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 038: dup
      // 039: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.MISSING_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 03c: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 03f: bipush 9
      // 041: aaload
      // 042: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 045: athrow
      // 046: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 049: athrow
      // 04a: aload 4
      // 04c: aload 5
      // 04e: invokevirtual com/l7tech/gateway/api/Resource.getSourceUrl ()Ljava/lang/String;
      // 051: invokestatic com/l7tech/util/TextUtils.trim (Ljava/lang/String;)Ljava/lang/String;
      // 054: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setUri (Ljava/lang/String;)V
      // 057: aload 4
      // 059: aload 5
      // 05b: invokevirtual com/l7tech/gateway/api/Resource.getContent ()Ljava/lang/String;
      // 05e: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setContent (Ljava/lang/String;)V
      // 061: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 064: astore 7
      // 066: aload 7
      // 068: bipush 3
      // 069: aaload
      // 06a: aload 5
      // 06c: invokevirtual com/l7tech/gateway/api/Resource.getType ()Ljava/lang/String;
      // 06f: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 072: ifeq 0ea
      // 075: aload 4
      // 077: getstatic com/l7tech/gateway/common/resources/ResourceType.DTD Lcom/l7tech/gateway/common/resources/ResourceType;
      // 07a: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setType (Lcom/l7tech/gateway/common/resources/ResourceType;)V
      // 07d: aload 4
      // 07f: getstatic com/l7tech/gateway/common/resources/ResourceType.DTD Lcom/l7tech/gateway/common/resources/ResourceType;
      // 082: invokevirtual com/l7tech/gateway/common/resources/ResourceType.getMimeType ()Ljava/lang/String;
      // 085: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setContentType (Ljava/lang/String;)V
      // 088: aload 0
      // 089: aload 3
      // 08a: invokevirtual com/l7tech/gateway/api/ResourceDocumentMO.getProperties ()Ljava/util/Map;
      // 08d: aload 7
      // 08f: bipush 1
      // 090: aaload
      // 091: invokestatic com/l7tech/util/Option.none ()Lcom/l7tech/util/Option;
      // 094: ldc java/lang/String
      // 096: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.getProperty (Ljava/util/Map;Ljava/lang/String;Lcom/l7tech/util/Option;Ljava/lang/Class;)Lcom/l7tech/util/Option;
      // 099: invokestatic com/l7tech/util/TextUtils.trim ()Lcom/l7tech/util/Functions$Unary;
      // 09c: invokevirtual com/l7tech/util/Option.map (Lcom/l7tech/util/Functions$Unary;)Lcom/l7tech/util/Option;
      // 09f: astore 6
      // 0a1: aload 6
      // 0a3: invokevirtual com/l7tech/util/Option.isSome ()Z
      // 0a6: ifeq 0d2
      // 0a9: aload 6
      // 0ab: invokevirtual com/l7tech/util/Option.some ()Ljava/lang/Object;
      // 0ae: checkcast java/lang/String
      // 0b1: invokevirtual java/lang/String.isEmpty ()Z
      // 0b4: ifne 0d2
      // 0b7: goto 0be
      // 0ba: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0bd: athrow
      // 0be: aload 4
      // 0c0: aload 6
      // 0c2: invokevirtual com/l7tech/util/Option.some ()Ljava/lang/Object;
      // 0c5: checkcast java/lang/String
      // 0c8: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setResourceKey1 (Ljava/lang/String;)V
      // 0cb: goto 0e7
      // 0ce: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0d1: athrow
      // 0d2: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 0d5: dup
      // 0d6: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.INVALID_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 0d9: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 0dc: astore 7
      // 0de: aload 7
      // 0e0: bipush 17
      // 0e2: aaload
      // 0e3: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 0e6: athrow
      // 0e7: goto 138
      // 0ea: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 0ed: bipush 7
      // 0ef: aaload
      // 0f0: aload 5
      // 0f2: invokevirtual com/l7tech/gateway/api/Resource.getType ()Ljava/lang/String;
      // 0f5: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 0f8: ifeq 128
      // 0fb: aload 4
      // 0fd: getstatic com/l7tech/gateway/common/resources/ResourceType.XML_SCHEMA Lcom/l7tech/gateway/common/resources/ResourceType;
      // 100: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setType (Lcom/l7tech/gateway/common/resources/ResourceType;)V
      // 103: aload 4
      // 105: getstatic com/l7tech/gateway/common/resources/ResourceType.XML_SCHEMA Lcom/l7tech/gateway/common/resources/ResourceType;
      // 108: invokevirtual com/l7tech/gateway/common/resources/ResourceType.getMimeType ()Ljava/lang/String;
      // 10b: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setContentType (Ljava/lang/String;)V
      // 10e: aload 4
      // 110: aload 0
      // 111: aload 5
      // 113: invokevirtual com/l7tech/gateway/api/Resource.getSourceUrl ()Ljava/lang/String;
      // 116: aload 5
      // 118: invokevirtual com/l7tech/gateway/api/Resource.getContent ()Ljava/lang/String;
      // 11b: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
      // 11e: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setResourceKey1 (Ljava/lang/String;)V
      // 121: goto 138
      // 124: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 127: athrow
      // 128: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 12b: dup
      // 12c: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.INVALID_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 12f: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 132: bipush 4
      // 133: aaload
      // 134: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 137: athrow
      // 138: aload 0
      // 139: aload 4
      // 13b: aload 3
      // 13c: invokevirtual com/l7tech/gateway/api/ResourceDocumentMO.getProperties ()Ljava/util/Map;
      // 13f: ldc com/l7tech/gateway/common/resources/ResourceEntry
      // 141: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.setProperties (Lcom/l7tech/objectmodel/PersistentEntity;Ljava/util/Map;Ljava/lang/Class;)V
      // 144: aload 0
      // 145: aload 3
      // 146: aload 4
      // 148: iload 2
      // 149: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.doSecurityZoneFromResource (Lcom/l7tech/gateway/api/SecurityZoneableObject;Lcom/l7tech/objectmodel/PersistentEntity;Z)V
      // 14c: aload 4
      // 14e: areturn
      // try (0 -> 11): 11 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (23 -> 33): 33 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (72 -> 80): 81 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (75 -> 89): 89 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (102 -> 125): 125 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
   }

   protected void updateEntity(ResourceEntry param1, ResourceEntry 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: aload 1
      // 01: aload 2
      // 02: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getUri ()Ljava/lang/String;
      // 05: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setUri (Ljava/lang/String;)V
      // 08: aload 1
      // 09: aload 2
      // 0a: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getType ()Lcom/l7tech/gateway/common/resources/ResourceType;
      // 0d: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setType (Lcom/l7tech/gateway/common/resources/ResourceType;)V
      // 10: aload 1
      // 11: aload 2
      // 12: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getContentType ()Ljava/lang/String;
      // 15: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setContentType (Ljava/lang/String;)V
      // 18: aload 1
      // 19: aload 2
      // 1a: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getContent ()Ljava/lang/String;
      // 1d: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setContent (Ljava/lang/String;)V
      // 20: aload 2
      // 21: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getDescription ()Ljava/lang/String;
      // 24: ifnull 4c
      // 27: aload 2
      // 28: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getDescription ()Ljava/lang/String;
      // 2b: invokevirtual java/lang/String.isEmpty ()Z
      // 2e: ifeq 44
      // 31: goto 38
      // 34: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 37: athrow
      // 38: aload 1
      // 39: aconst_null
      // 3a: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setDescription (Ljava/lang/String;)V
      // 3d: goto 4c
      // 40: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 43: athrow
      // 44: aload 1
      // 45: aload 2
      // 46: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getDescription ()Ljava/lang/String;
      // 49: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setDescription (Ljava/lang/String;)V
      // 4c: aload 1
      // 4d: aload 2
      // 4e: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getResourceKey1 ()Ljava/lang/String;
      // 51: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setResourceKey1 (Ljava/lang/String;)V
      // 54: aload 1
      // 55: aload 2
      // 56: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getResourceKey2 ()Ljava/lang/String;
      // 59: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setResourceKey2 (Ljava/lang/String;)V
      // 5c: aload 1
      // 5d: aload 2
      // 5e: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getResourceKey3 ()Ljava/lang/String;
      // 61: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setResourceKey3 (Ljava/lang/String;)V
      // 64: aload 1
      // 65: aload 2
      // 66: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getSecurityZone ()Lcom/l7tech/objectmodel/SecurityZone;
      // 69: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.setSecurityZone (Lcom/l7tech/objectmodel/SecurityZone;)V
      // 6c: return
      // try (0 -> 23): 24 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // try (19 -> 30): 30 com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
   }

   public ResourceDocumentMO getResource(Map<String, String> var1) throws ResourceFactory.ResourceNotFoundException {
      return (ResourceDocumentMO)Eithers.extract((Either)this.transactional(new u(this, var1), true));
   }

   private ResourceEntry a(Map<String, String> param1) throws ResourceFactory.ResourceAccessException, ResourceFactory.ResourceNotFoundException {
      // $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: aconst_null
      // 001: astore 2
      // 002: aload 1
      // 003: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 006: astore 7
      // 008: aload 7
      // 00a: bipush 2
      // 00b: aaload
      // 00c: invokeinterface java/util/Map.get (Ljava/lang/Object;)Ljava/lang/Object; 2
      // 011: checkcast java/lang/String
      // 014: astore 3
      // 015: aload 1
      // 016: aload 7
      // 018: bipush 12
      // 01a: aaload
      // 01b: invokeinterface java/util/Map.get (Ljava/lang/Object;)Ljava/lang/Object; 2
      // 020: checkcast java/lang/String
      // 023: astore 4
      // 025: aload 3
      // 026: ifnonnull 041
      // 029: aload 4
      // 02b: ifnonnull 041
      // 02e: goto 035
      // 031: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 034: athrow
      // 035: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceSelectors
      // 038: dup
      // 039: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceSelectors.<init> ()V
      // 03c: athrow
      // 03d: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 040: athrow
      // 041: aload 3
      // 042: ifnull 062
      // 045: aload 0
      // 046: getfield com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.s Lcom/l7tech/server/globalresources/ResourceEntryManager;
      // 049: aload 0
      // 04a: aload 3
      // 04b: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.toInternalId (Ljava/lang/String;)Lcom/l7tech/objectmodel/Goid;
      // 04e: invokeinterface com/l7tech/server/globalresources/ResourceEntryManager.findByPrimaryKey (Lcom/l7tech/objectmodel/Goid;)Lcom/l7tech/objectmodel/PersistentEntity; 2
      // 053: checkcast com/l7tech/gateway/common/resources/ResourceEntry
      // 056: astore 2
      // 057: goto 062
      // 05a: astore 5
      // 05c: aload 0
      // 05d: aload 5
      // 05f: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.handleObjectModelException (Lcom/l7tech/objectmodel/ObjectModelException;)V
      // 062: aload 2
      // 063: ifnonnull 09a
      // 066: aload 4
      // 068: ifnull 09a
      // 06b: goto 072
      // 06e: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 071: athrow
      // 072: new com/l7tech/objectmodel/EntityHeader
      // 075: dup
      // 076: invokespecial com/l7tech/objectmodel/EntityHeader.<init> ()V
      // 079: astore 5
      // 07b: aload 5
      // 07d: aload 4
      // 07f: invokevirtual com/l7tech/objectmodel/EntityHeader.setDescription (Ljava/lang/String;)V
      // 082: aload 0
      // 083: getfield com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.s Lcom/l7tech/server/globalresources/ResourceEntryManager;
      // 086: aload 4
      // 088: aconst_null
      // 089: invokeinterface com/l7tech/server/globalresources/ResourceEntryManager.findResourceByUriAndType (Ljava/lang/String;Lcom/l7tech/gateway/common/resources/ResourceType;)Lcom/l7tech/gateway/common/resources/ResourceEntry; 3
      // 08e: astore 2
      // 08f: goto 09a
      // 092: astore 6
      // 094: aload 0
      // 095: aload 6
      // 097: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.handleObjectModelException (Lcom/l7tech/objectmodel/ObjectModelException;)V
      // 09a: aload 2
      // 09b: ifnull 0da
      // 09e: aload 3
      // 09f: ifnull 0c0
      // 0a2: goto 0a9
      // 0a5: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0a8: athrow
      // 0a9: aload 3
      // 0aa: aload 2
      // 0ab: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getId ()Ljava/lang/String;
      // 0ae: invokevirtual java/lang/String.equalsIgnoreCase (Ljava/lang/String;)Z
      // 0b1: ifne 0c0
      // 0b4: goto 0bb
      // 0b7: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0ba: athrow
      // 0bb: aconst_null
      // 0bc: astore 2
      // 0bd: goto 0da
      // 0c0: aload 4
      // 0c2: ifnull 0da
      // 0c5: aload 4
      // 0c7: aload 2
      // 0c8: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getUri ()Ljava/lang/String;
      // 0cb: invokevirtual java/lang/String.equalsIgnoreCase (Ljava/lang/String;)Z
      // 0ce: ifne 0da
      // 0d1: goto 0d8
      // 0d4: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0d7: athrow
      // 0d8: aconst_null
      // 0d9: astore 2
      // 0da: aload 2
      // 0db: ifnull 0e7
      // 0de: aload 0
      // 0df: aload 2
      // 0e0: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.filterEntity (Lcom/l7tech/objectmodel/PersistentEntity;)Lcom/l7tech/objectmodel/PersistentEntity;
      // 0e3: checkcast com/l7tech/gateway/common/resources/ResourceEntry
      // 0e6: astore 2
      // 0e7: aload 2
      // 0e8: ifnonnull 106
      // 0eb: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceNotFoundException
      // 0ee: dup
      // 0ef: aload 1
      // 0f0: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 0f3: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 0f6: bipush 0
      // 0f7: aaload
      // 0f8: swap
      // 0f9: 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" ]
      // 0fe: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$ResourceNotFoundException.<init> (Ljava/lang/String;)V
      // 101: athrow
      // 102: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 105: athrow
      // 106: aload 0
      // 107: invokevirtual com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.getType ()Lcom/l7tech/objectmodel/EntityType;
      // 10a: aload 2
      // 10b: invokevirtual com/l7tech/gateway/common/resources/ResourceEntry.getId ()Ljava/lang/String;
      // 10e: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/ac.setEntityInfo (Lcom/l7tech/objectmodel/EntityType;Ljava/lang/String;)V
      // 111: aload 2
      // 112: areturn
      // try (20 -> 29): 29 com/l7tech/objectmodel/FindException
      // try (18 -> 22): 23 com/l7tech/objectmodel/FindException
      // try (33 -> 41): 42 com/l7tech/objectmodel/FindException
      // try (46 -> 50): 51 com/l7tech/objectmodel/FindException
      // try (60 -> 66): 67 com/l7tech/objectmodel/FindException
      // try (71 -> 75): 76 com/l7tech/objectmodel/FindException
      // try (73 -> 83): 84 com/l7tech/objectmodel/FindException
      // try (89 -> 96): 97 com/l7tech/objectmodel/FindException
      // try (108 -> 121): 121 com/l7tech/objectmodel/FindException
   }

   private String a(String param1, String 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: aload 1
      // 01: aload 2
      // 02: aload 0
      // 03: getfield com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.r Lorg/xml/sax/EntityResolver;
      // 06: invokestatic com/l7tech/common/io/XmlUtil.getSchemaTNS (Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/EntityResolver;)Ljava/lang/String;
      // 09: astore 3
      // 0a: goto 31
      // 0d: astore 4
      // 0f: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 12: dup
      // 13: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.INVALID_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 16: aload 4
      // 18: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 1b: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 1e: astore 5
      // 20: aload 5
      // 22: bipush 16
      // 24: aaload
      // 25: swap
      // 26: ldc "'"
      // 28: 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" ]
      // 2d: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 30: athrow
      // 31: aload 3
      // 32: ifnull 48
      // 35: aload 3
      // 36: invokevirtual java/lang/String.trim ()Ljava/lang/String;
      // 39: invokevirtual java/lang/String.isEmpty ()Z
      // 3c: ifeq 48
      // 3f: goto 46
      // 42: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 45: athrow
      // 46: aconst_null
      // 47: astore 3
      // 48: aload 3
      // 49: ifnonnull 71
      // 4c: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.o Ljava/lang/Boolean;
      // 4f: invokevirtual java/lang/Boolean.booleanValue ()Z
      // 52: ifeq 71
      // 55: goto 5c
      // 58: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 5b: athrow
      // 5c: new com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException
      // 5f: dup
      // 60: getstatic com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType.INVALID_VALUES Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;
      // 63: getstatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.t [Ljava/lang/String;
      // 66: bipush 14
      // 68: aaload
      // 69: invokespecial com/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException.<init> (Lcom/l7tech/external/assertions/gatewaymanagement/server/ResourceFactory$InvalidResourceException$ExceptionType;Ljava/lang/String;)V
      // 6c: athrow
      // 6d: invokestatic com/l7tech/external/assertions/gatewaymanagement/server/DocumentResourceFactory.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 70: athrow
      // 71: aload 3
      // 72: areturn
      // try (0 -> 6): 7 com/l7tech/common/io/XmlUtil$BadSchemaException
      // try (23 -> 29): 30 com/l7tech/common/io/XmlUtil$BadSchemaException
      // try (34 -> 39): 40 com/l7tech/common/io/XmlUtil$BadSchemaException
      // try (36 -> 50): 50 com/l7tech/common/io/XmlUtil$BadSchemaException
   }

   static {
      String[] var5 = new String[18];
      int var3 = 0;
      String var2 = "yhaT%~;N-|T$,>Dx|_p\u0010[xpW9o\u0011Oh|O9j1N\u007f\u0002Bi\u0003Oyv,YhaT%~;N-fB ix\fif_w,7Y-5C=`+HewV1+t\u000bhjK5o,Ni\tS`~H3d=FlBHb\u007f\u0015<;,Nnz\u00155t,N\u007f|Z<\"9X~wI$e7E~<\\1x=\\lkV1b9Lh\u007f^>xvXnz^=m\fe^@^!y1Yhv\tS`~H3d=Fl\u000f_l`\\5x\u0016J`wH m;N\u0010FdaH9b?\u000b\u007fwH?y*Hh\u000f_l`\\5x\u0016J`wH m;N\u0003Oyv\u0004El\u007f^\u0010[xpW9o\u0011Oh|O9j1N\u007f!s@^\u001b\u0003o0N`s\u001b8m+\u000bc}\u001b$m*Lhfu1a=X}sX5\u001aNub^3x=O-`^#c-Ynw\u001b4c;^`wU$";
      int var4 = "yhaT%~;N-|T$,>Dx|_p\u0010[xpW9o\u0011Oh|O9j1N\u007f\u0002Bi\u0003Oyv,YhaT%~;N-fB ix\fif_w,7Y-5C=`+HewV1+t\u000bhjK5o,Ni\tS`~H3d=FlBHb\u007f\u0015<;,Nnz\u00155t,N\u007f|Z<\"9X~wI$e7E~<\\1x=\\lkV1b9Lh\u007f^>xvXnz^=m\fe^@^!y1Yhv\tS`~H3d=Fl\u000f_l`\\5x\u0016J`wH m;N\u0010FdaH9b?\u000b\u007fwH?y*Hh\u000f_l`\\5x\u0016J`wH m;N\u0003Oyv\u0004El\u007f^\u0010[xpW9o\u0011Oh|O9j1N\u007f!s@^\u001b\u0003o0N`s\u001b8m+\u000bc}\u001b$m*Lhfu1a=X}sX5\u001aNub^3x=O-`^#c-Ynw\u001b4c;^`wU$"
         .length();
      char var1 = 19;
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 5;
         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) {
                     t = var5;
                     String[] var9 = t;
                     p = t[1];
                     q = var9[8];
                     o = ConfigFactory.getBooleanProperty(t[6], false);
                     return;
                  }

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

                  var2 = "~_Xf\u0000Y\u00007icKLc\u0007\u007fTCfL\u0017?gCAw\tB\u0010n\u0011\tw\u0019R\b~Rgc\t^\u0010~WGb\u001e\u0017H7\\[t\u0018\u0010\u0006r\u0011O'\u001aQ\b~U\u000ew\u0019R\b~R\u000en\bU\ncXHn\tBJ";
                  var4 = "~_Xf\u0000Y\u00007icKLc\u0007\u007fTCfL\u0017?gCAw\tB\u0010n\u0011\tw\u0019R\b~Rgc\t^\u0010~WGb\u001e\u0017H7\\[t\u0018\u0010\u0006r\u0011O'\u001aQ\b~U\u000ew\u0019R\b~R\u000en\bU\ncXHn\tBJ"
                     .length();
                  var1 = 20;
                  var7 = -1;
            }

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

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

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

      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 -> 46;
            case 1 -> 8;
            case 2 -> 23;
            case 3 -> 62;
            case 4 -> 85;
            case 5 -> 9;
            default -> 93;
         });
      }

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