final class jdk.incubator.jpackage.internal.OverridableResource
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: jdk.incubator.jpackage.internal.OverridableResource
  super_class: java.lang.Object
{
  private java.util.Map<java.lang.String, java.lang.String> substitutionData;
    descriptor: Ljava/util/Map;
    flags: (0x0002) ACC_PRIVATE
    Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;

  private java.lang.String category;
    descriptor: Ljava/lang/String;
    flags: (0x0002) ACC_PRIVATE

  private java.nio.file.Path resourceDir;
    descriptor: Ljava/nio/file/Path;
    flags: (0x0002) ACC_PRIVATE

  private java.nio.file.Path publicName;
    descriptor: Ljava/nio/file/Path;
    flags: (0x0002) ACC_PRIVATE

  private java.nio.file.Path externalPath;
    descriptor: Ljava/nio/file/Path;
    flags: (0x0002) ACC_PRIVATE

  private final java.lang.String defaultName;
    descriptor: Ljava/lang/String;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  void <init>(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.lang.String defaultName
         0: .line 65
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 66
            aload 0 /* this */
            aload 1 /* defaultName */
            putfield jdk.incubator.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
         2: .line 67
            return
        end local 1 // java.lang.String defaultName
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    3     0         this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    3     1  defaultName  Ljava/lang/String;
    MethodParameters:
             Name  Flags
      defaultName  

  jdk.incubator.jpackage.internal.OverridableResource setSubstitutionData(java.util.Map<java.lang.String, java.lang.String>);
    descriptor: (Ljava/util/Map;)Ljdk/incubator/jpackage/internal/OverridableResource;
    flags: (0x0000) 
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.util.Map v
         0: .line 70
            aload 1 /* v */
            ifnull 3
         1: .line 72
            aload 0 /* this */
            new java.util.HashMap
            dup
            aload 1 /* v */
            invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
            putfield jdk.incubator.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
         2: .line 73
            goto 4
         3: .line 74
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield jdk.incubator.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
         4: .line 76
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            areturn
        end local 1 // java.util.Map v
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    5     1     v  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
    Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljdk/incubator/jpackage/internal/OverridableResource;
    MethodParameters:
      Name  Flags
      v     

  jdk.incubator.jpackage.internal.OverridableResource setCategory(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljdk/incubator/jpackage/internal/OverridableResource;
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.lang.String v
         0: .line 80
            aload 0 /* this */
            aload 1 /* v */
            putfield jdk.incubator.jpackage.internal.OverridableResource.category:Ljava/lang/String;
         1: .line 81
            aload 0 /* this */
            areturn
        end local 1 // java.lang.String v
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    2     1     v  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      v     

  jdk.incubator.jpackage.internal.OverridableResource setResourceDir(java.nio.file.Path);
    descriptor: (Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.nio.file.Path v
         0: .line 85
            aload 0 /* this */
            aload 1 /* v */
            putfield jdk.incubator.jpackage.internal.OverridableResource.resourceDir:Ljava/nio/file/Path;
         1: .line 86
            aload 0 /* this */
            areturn
        end local 1 // java.nio.file.Path v
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    2     1     v  Ljava/nio/file/Path;
    MethodParameters:
      Name  Flags
      v     

  jdk.incubator.jpackage.internal.OverridableResource setResourceDir(java.io.File);
    descriptor: (Ljava/io/File;)Ljdk/incubator/jpackage/internal/OverridableResource;
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.io.File v
         0: .line 90
            aload 0 /* this */
            aload 1 /* v */
            invokestatic jdk.incubator.jpackage.internal.OverridableResource.toPath:(Ljava/io/File;)Ljava/nio/file/Path;
            invokevirtual jdk.incubator.jpackage.internal.OverridableResource.setResourceDir:(Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
            areturn
        end local 1 // java.io.File v
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    1     1     v  Ljava/io/File;
    MethodParameters:
      Name  Flags
      v     

  jdk.incubator.jpackage.internal.OverridableResource setPublicName(java.nio.file.Path);
    descriptor: (Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.nio.file.Path v
         0: .line 99
            aload 0 /* this */
            aload 1 /* v */
            putfield jdk.incubator.jpackage.internal.OverridableResource.publicName:Ljava/nio/file/Path;
         1: .line 100
            aload 0 /* this */
            areturn
        end local 1 // java.nio.file.Path v
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    2     1     v  Ljava/nio/file/Path;
    MethodParameters:
      Name  Flags
      v     

  jdk.incubator.jpackage.internal.OverridableResource setPublicName(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljdk/incubator/jpackage/internal/OverridableResource;
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.lang.String v
         0: .line 104
            aload 0 /* this */
            aload 1 /* v */
            iconst_0
            anewarray java.lang.String
            invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            invokevirtual jdk.incubator.jpackage.internal.OverridableResource.setPublicName:(Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
            areturn
        end local 1 // java.lang.String v
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    1     1     v  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      v     

  jdk.incubator.jpackage.internal.OverridableResource setExternal(java.nio.file.Path);
    descriptor: (Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.nio.file.Path v
         0: .line 108
            aload 0 /* this */
            aload 1 /* v */
            putfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
         1: .line 109
            aload 0 /* this */
            areturn
        end local 1 // java.nio.file.Path v
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    2     1     v  Ljava/nio/file/Path;
    MethodParameters:
      Name  Flags
      v     

  jdk.incubator.jpackage.internal.OverridableResource setExternal(java.io.File);
    descriptor: (Ljava/io/File;)Ljdk/incubator/jpackage/internal/OverridableResource;
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.io.File v
         0: .line 113
            aload 0 /* this */
            aload 1 /* v */
            invokestatic jdk.incubator.jpackage.internal.OverridableResource.toPath:(Ljava/io/File;)Ljava/nio/file/Path;
            invokevirtual jdk.incubator.jpackage.internal.OverridableResource.setExternal:(Ljava/nio/file/Path;)Ljdk/incubator/jpackage/internal/OverridableResource;
            areturn
        end local 1 // java.io.File v
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    1     1     v  Ljava/io/File;
    MethodParameters:
      Name  Flags
      v     

  void saveToFile(java.nio.file.Path);
    descriptor: (Ljava/nio/file/Path;)V
    flags: (0x0000) 
    Code:
      stack=6, locals=8, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.nio.file.Path dest
         0: .line 118
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.category:Ljava/lang/String;
            ifnull 3
         1: .line 119
            ldc "[%s]"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.category:Ljava/lang/String;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            astore 2 /* printableCategory */
        start local 2 // java.lang.String printableCategory
         2: .line 120
            goto 4
        end local 2 // java.lang.String printableCategory
         3: .line 121
      StackMap locals:
      StackMap stack:
            ldc ""
            astore 2 /* printableCategory */
        start local 2 // java.lang.String printableCategory
         4: .line 124
      StackMap locals: java.lang.String
      StackMap stack:
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
            ifnull 20
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
            invokevirtual java.io.File.exists:()Z
            ifeq 20
         5: .line 126
            ldc "message.using-custom-resource-from-file"
         6: .line 125
            invokestatic jdk.incubator.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
         7: .line 127
            aload 2 /* printableCategory */
            aastore
            dup
            iconst_1
         8: .line 128
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
            invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
            invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
            aastore
         9: .line 125
            invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokestatic jdk.incubator.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
        10: .line 130
            aconst_null
            astore 3
            aconst_null
            astore 4
        11: aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.externalPath:Ljava/nio/file/Path;
            iconst_0
            anewarray java.nio.file.OpenOption
            invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
            astore 5 /* in */
        start local 5 // java.io.InputStream in
        12: .line 131
            aload 0 /* this */
            aload 5 /* in */
            aload 1 /* dest */
            invokevirtual jdk.incubator.jpackage.internal.OverridableResource.processResourceStream:(Ljava/io/InputStream;Ljava/nio/file/Path;)V
        13: .line 132
            aload 5 /* in */
            ifnull 19
            aload 5 /* in */
            invokevirtual java.io.InputStream.close:()V
            goto 19
      StackMap locals: jdk.incubator.jpackage.internal.OverridableResource java.nio.file.Path java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
      StackMap stack: java.lang.Throwable
        14: astore 3
            aload 5 /* in */
            ifnull 15
            aload 5 /* in */
            invokevirtual java.io.InputStream.close:()V
        end local 5 // java.io.InputStream in
      StackMap locals:
      StackMap stack:
        15: aload 3
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        16: astore 4
            aload 3
            ifnonnull 17
            aload 4
            astore 3
            goto 18
      StackMap locals:
      StackMap stack:
        17: aload 3
            aload 4
            if_acmpeq 18
            aload 3
            aload 4
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        18: aload 3
            athrow
        19: .line 133
      StackMap locals:
      StackMap stack:
            return
        20: .line 136
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.publicName:Ljava/nio/file/Path;
            invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
        21: .line 137
            aload 1 /* dest */
            invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
        22: .line 136
            invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.nio.file.Path
            astore 3 /* resourceName */
        start local 3 // java.nio.file.Path resourceName
        23: .line 139
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.resourceDir:Ljava/nio/file/Path;
            ifnull 43
        24: .line 140
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.resourceDir:Ljava/nio/file/Path;
            aload 3 /* resourceName */
            invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
            astore 4 /* customResource */
        start local 4 // java.nio.file.Path customResource
        25: .line 141
            aload 4 /* customResource */
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
            invokevirtual java.io.File.exists:()Z
            ifeq 43
        26: .line 143
            ldc "message.using-custom-resource"
        27: .line 142
            invokestatic jdk.incubator.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
        28: .line 143
            aload 2 /* printableCategory */
            aastore
            dup
            iconst_1
        29: .line 144
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.resourceDir:Ljava/nio/file/Path;
            invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
            invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
        30: .line 145
            aload 4 /* customResource */
            invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
            invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
        31: .line 144
            invokeinterface java.nio.file.Path.relativize:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
            aastore
        32: .line 142
            invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokestatic jdk.incubator.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
        33: .line 147
            aconst_null
            astore 5
            aconst_null
            astore 6
        34: aload 4 /* customResource */
            iconst_0
            anewarray java.nio.file.OpenOption
            invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
            astore 7 /* in */
        start local 7 // java.io.InputStream in
        35: .line 148
            aload 0 /* this */
            aload 7 /* in */
            aload 1 /* dest */
            invokevirtual jdk.incubator.jpackage.internal.OverridableResource.processResourceStream:(Ljava/io/InputStream;Ljava/nio/file/Path;)V
        36: .line 149
            aload 7 /* in */
            ifnull 42
            aload 7 /* in */
            invokevirtual java.io.InputStream.close:()V
            goto 42
      StackMap locals: jdk.incubator.jpackage.internal.OverridableResource java.nio.file.Path java.lang.String java.nio.file.Path java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
      StackMap stack: java.lang.Throwable
        37: astore 5
            aload 7 /* in */
            ifnull 38
            aload 7 /* in */
            invokevirtual java.io.InputStream.close:()V
        end local 7 // java.io.InputStream in
      StackMap locals:
      StackMap stack:
        38: aload 5
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        39: astore 6
            aload 5
            ifnonnull 40
            aload 6
            astore 5
            goto 41
      StackMap locals:
      StackMap stack:
        40: aload 5
            aload 6
            if_acmpeq 41
            aload 5
            aload 6
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        41: aload 5
            athrow
        42: .line 150
      StackMap locals:
      StackMap stack:
            return
        end local 4 // java.nio.file.Path customResource
        43: .line 154
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
            ifnull 56
        44: .line 156
            ldc "message.using-default-resource"
            invokestatic jdk.incubator.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
        45: .line 157
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
            aastore
            dup
            iconst_1
            aload 2 /* printableCategory */
            aastore
            dup
            iconst_2
            aload 3 /* resourceName */
            aastore
        46: .line 155
            invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokestatic jdk.incubator.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
        47: .line 159
            aconst_null
            astore 4
            aconst_null
            astore 5
        48: aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.defaultName:Ljava/lang/String;
            invokestatic jdk.incubator.jpackage.internal.OverridableResource.readDefault:(Ljava/lang/String;)Ljava/io/InputStream;
            astore 6 /* in */
        start local 6 // java.io.InputStream in
        49: .line 160
            aload 0 /* this */
            aload 6 /* in */
            aload 1 /* dest */
            invokevirtual jdk.incubator.jpackage.internal.OverridableResource.processResourceStream:(Ljava/io/InputStream;Ljava/nio/file/Path;)V
        50: .line 161
            aload 6 /* in */
            ifnull 56
            aload 6 /* in */
            invokevirtual java.io.InputStream.close:()V
            goto 56
      StackMap locals: jdk.incubator.jpackage.internal.OverridableResource java.nio.file.Path java.lang.String java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
      StackMap stack: java.lang.Throwable
        51: astore 4
            aload 6 /* in */
            ifnull 52
            aload 6 /* in */
            invokevirtual java.io.InputStream.close:()V
        end local 6 // java.io.InputStream in
      StackMap locals:
      StackMap stack:
        52: aload 4
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        53: astore 5
            aload 4
            ifnonnull 54
            aload 5
            astore 4
            goto 55
      StackMap locals:
      StackMap stack:
        54: aload 4
            aload 5
            if_acmpeq 55
            aload 4
            aload 5
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        55: aload 4
            athrow
        56: .line 163
      StackMap locals:
      StackMap stack:
            return
        end local 3 // java.nio.file.Path resourceName
        end local 2 // java.lang.String printableCategory
        end local 1 // java.nio.file.Path dest
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0   57     0               this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0   57     1               dest  Ljava/nio/file/Path;
            2    3     2  printableCategory  Ljava/lang/String;
            4   57     2  printableCategory  Ljava/lang/String;
           12   15     5                 in  Ljava/io/InputStream;
           23   57     3       resourceName  Ljava/nio/file/Path;
           25   43     4     customResource  Ljava/nio/file/Path;
           35   38     7                 in  Ljava/io/InputStream;
           49   52     6                 in  Ljava/io/InputStream;
      Exception table:
        from    to  target  type
          12    13      14  any
          11    16      16  any
          35    36      37  any
          34    39      39  any
          49    50      51  any
          48    53      53  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      dest  

  void saveToFile(java.io.File);
    descriptor: (Ljava/io/File;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.io.File dest
         0: .line 166
            aload 0 /* this */
            aload 1 /* dest */
            invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
            invokevirtual jdk.incubator.jpackage.internal.OverridableResource.saveToFile:(Ljava/nio/file/Path;)V
         1: .line 167
            return
        end local 1 // java.io.File dest
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0    2     1  dest  Ljava/io/File;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      dest  

  static java.io.InputStream readDefault(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/io/InputStream;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.lang.String resourceName
         0: .line 170
            ldc Ljdk/incubator/jpackage/internal/resources/ResourceLocator;
            aload 0 /* resourceName */
            invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
            areturn
        end local 0 // java.lang.String resourceName
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    1     0  resourceName  Ljava/lang/String;
    MethodParameters:
              Name  Flags
      resourceName  

  static jdk.incubator.jpackage.internal.OverridableResource createResource(java.lang.String, java.util.Map<java.lang.String, ? super java.lang.Object>);
    descriptor: (Ljava/lang/String;Ljava/util/Map;)Ljdk/incubator/jpackage/internal/OverridableResource;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // java.lang.String defaultName
        start local 1 // java.util.Map params
         0: .line 175
            new jdk.incubator.jpackage.internal.OverridableResource
            dup
            aload 0 /* defaultName */
            invokespecial jdk.incubator.jpackage.internal.OverridableResource.<init>:(Ljava/lang/String;)V
         1: .line 176
            getstatic jdk.incubator.jpackage.internal.StandardBundlerParam.RESOURCE_DIR:Ljdk/incubator/jpackage/internal/StandardBundlerParam;
            aload 1 /* params */
            invokevirtual jdk.incubator.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
            checkcast java.io.File
         2: .line 175
            invokevirtual jdk.incubator.jpackage.internal.OverridableResource.setResourceDir:(Ljava/io/File;)Ljdk/incubator/jpackage/internal/OverridableResource;
            areturn
        end local 1 // java.util.Map params
        end local 0 // java.lang.String defaultName
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    3     0  defaultName  Ljava/lang/String;
            0    3     1       params  Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
    Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljdk/incubator/jpackage/internal/OverridableResource;
    MethodParameters:
             Name  Flags
      defaultName  
      params       

  private static java.util.List<java.lang.String> substitute(java.util.stream.Stream<java.lang.String>, java.util.Map<java.lang.String, java.lang.String>);
    descriptor: (Ljava/util/stream/Stream;Ljava/util/Map;)Ljava/util/List;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // java.util.stream.Stream lines
        start local 1 // java.util.Map substitutionData
         0: .line 181
            aload 0 /* lines */
            aload 1 /* substitutionData */
            invokedynamic apply(Ljava/util/Map;)Ljava/util/function/Function;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)Ljava/lang/Object;
                  jdk/incubator/jpackage/internal/OverridableResource.lambda$0(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String; (6)
                  (Ljava/lang/String;)Ljava/lang/String;
            invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
         1: .line 188
            invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
            invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
            checkcast java.util.List
         2: .line 181
            areturn
        end local 1 // java.util.Map substitutionData
        end local 0 // java.util.stream.Stream lines
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0    3     0             lines  Ljava/util/stream/Stream<Ljava/lang/String;>;
            0    3     1  substitutionData  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
    Signature: (Ljava/util/stream/Stream<Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljava/util/List<Ljava/lang/String;>;
    MethodParameters:
                  Name  Flags
      lines             
      substitutionData  

  private static java.nio.file.Path toPath(java.io.File);
    descriptor: (Ljava/io/File;)Ljava/nio/file/Path;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.io.File v
         0: .line 192
            aload 0 /* v */
            ifnull 2
         1: .line 193
            aload 0 /* v */
            invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
            areturn
         2: .line 195
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 0 // java.io.File v
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0     v  Ljava/io/File;
    MethodParameters:
      Name  Flags
      v     

  private void processResourceStream(java.io.InputStream, java.nio.file.Path);
    descriptor: (Ljava/io/InputStream;Ljava/nio/file/Path;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=6, locals=6, args_size=3
        start local 0 // jdk.incubator.jpackage.internal.OverridableResource this
        start local 1 // java.io.InputStream rawResource
        start local 2 // java.nio.file.Path dest
         0: .line 200
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
            ifnonnull 4
         1: .line 201
            aload 2 /* dest */
            invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
            iconst_0
            anewarray java.nio.file.attribute.FileAttribute
            invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
            pop
         2: .line 202
            aload 1 /* rawResource */
            aload 2 /* dest */
            iconst_1
            anewarray java.nio.file.CopyOption
            dup
            iconst_0
            getstatic java.nio.file.StandardCopyOption.REPLACE_EXISTING:Ljava/nio/file/StandardCopyOption;
            aastore
            invokestatic java.nio.file.Files.copy:(Ljava/io/InputStream;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)J
            pop2
         3: .line 203
            goto 16
         4: .line 205
      StackMap locals:
      StackMap stack:
            aconst_null
            astore 3
            aconst_null
            astore 4
         5: new java.io.BufferedReader
            dup
         6: .line 206
            new java.io.InputStreamReader
            dup
            aload 1 /* rawResource */
            getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
            invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
         7: .line 205
            invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
            astore 5 /* reader */
        start local 5 // java.io.BufferedReader reader
         8: .line 207
            aload 2 /* dest */
            invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
            iconst_0
            anewarray java.nio.file.attribute.FileAttribute
            invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
            pop
         9: .line 208
            aload 2 /* dest */
            aload 5 /* reader */
            invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.OverridableResource.substitutionData:Ljava/util/Map;
            invokestatic jdk.incubator.jpackage.internal.OverridableResource.substitute:(Ljava/util/stream/Stream;Ljava/util/Map;)Ljava/util/List;
            iconst_0
            anewarray java.nio.file.OpenOption
            invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;Ljava/lang/Iterable;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
            pop
        10: .line 209
            aload 5 /* reader */
            ifnull 16
            aload 5 /* reader */
            invokevirtual java.io.BufferedReader.close:()V
            goto 16
      StackMap locals: jdk.incubator.jpackage.internal.OverridableResource java.io.InputStream java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.BufferedReader
      StackMap stack: java.lang.Throwable
        11: astore 3
            aload 5 /* reader */
            ifnull 12
            aload 5 /* reader */
            invokevirtual java.io.BufferedReader.close:()V
        end local 5 // java.io.BufferedReader reader
      StackMap locals:
      StackMap stack:
        12: aload 3
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        13: astore 4
            aload 3
            ifnonnull 14
            aload 4
            astore 3
            goto 15
      StackMap locals:
      StackMap stack:
        14: aload 3
            aload 4
            if_acmpeq 15
            aload 3
            aload 4
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        15: aload 3
            athrow
        16: .line 211
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.nio.file.Path dest
        end local 1 // java.io.InputStream rawResource
        end local 0 // jdk.incubator.jpackage.internal.OverridableResource this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   17     0         this  Ljdk/incubator/jpackage/internal/OverridableResource;
            0   17     1  rawResource  Ljava/io/InputStream;
            0   17     2         dest  Ljava/nio/file/Path;
            8   12     5       reader  Ljava/io/BufferedReader;
      Exception table:
        from    to  target  type
           8    10      11  any
           5    13      13  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
             Name  Flags
      rawResource  
      dest         

  private static java.lang.String lambda$0(java.util.Map, java.lang.String);
    descriptor: (Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=4, locals=5, args_size=2
        start local 1 // java.lang.String line
         0: .line 182
            aload 1 /* line */
            astore 2 /* result */
        start local 2 // java.lang.String result
         1: .line 183
            aload 0
            invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 4
            goto 8
      StackMap locals: java.util.Map java.lang.String java.lang.String top java.util.Iterator
      StackMap stack:
         2: aload 4
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.util.Map$Entry
            astore 3 /* entry */
        start local 3 // java.util.Map$Entry entry
         3: .line 184
            aload 2 /* result */
            aload 3 /* entry */
            invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
            checkcast java.lang.CharSequence
         4: .line 185
            aload 3 /* entry */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            checkcast java.lang.String
         5: .line 184
            invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
         6: .line 185
            ldc ""
            invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.CharSequence
         7: .line 184
            invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
            astore 2 /* result */
        end local 3 // java.util.Map$Entry entry
         8: .line 183
      StackMap locals:
      StackMap stack:
            aload 4
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 2
         9: .line 187
            aload 2 /* result */
            areturn
        end local 2 // java.lang.String result
        end local 1 // java.lang.String line
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   10     1    line  Ljava/lang/String;
            1   10     2  result  Ljava/lang/String;
            3    8     3   entry  Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;
}
SourceFile: "OverridableResource.java"
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public abstract Entry = java.util.Map$Entry of java.util.Map