title: try-with-resources / use / multiple resources
body: <p>I'm using a Java-API which heavily uses the Autoclosable-Interface and thus in Java try-with-resources. However in Java you can specify</p>
  
  <pre class="lang-java prettyprint-override"><code>try (res1, res2, res3...) {
    ...
  }
  </code></pre>
  
  <p>Do we have a way to use more than one resource? It looks like the well known callback-hell:</p>
  
  <pre class="lang-kotlin prettyprint-override"><code>val database = Databases.openDatabase(dbFile)
  
  database.use {
    database.createResource(ResourceConfiguration.Builder(resPathName, config).build())
  
    val resMgr = database.getResourceManager(ResourceManagerConfiguration.Builder(resPathName).build())
  
    resMgr.use {
      val wtx = resMgr.beginNodeWriteTrx()
  
      wtx.use {
        wtx.insertSubtreeAsFirstChild(XMLShredder.createStringReader(resFileToStore))
      }
    }
  }
  </code></pre>