code: public void methods() {
          // tag::methods[]
          String v = configuration.get("key");
          v = configuration.getWithDefault("key", "default");
          v = configuration.getOrDie("key");
  
          boolean b = configuration.getBoolean("key");
          b = configuration.getBooleanWithDefault("key", true);
          b = configuration.getBooleanOrDie("key");
  
          int i = configuration.getInteger("key");
          i = configuration.getIntegerWithDefault("key", 5);
          i = configuration.getIntegerOrDie("key");
  
          long l = configuration.getLong("key");
          l = configuration.getLongWithDefault("key", 5l);
          l = configuration.getLongOrDie("key");
  
          // The application base directory
          File baseDir = configuration.getBaseDir();
  
          // Convert the value to a MyData object, using 'converters'
          MyData data = configuration.get("key", MyData.class);
          data = configuration.get("key", MyData.class, "data1,data2,data3");
          data = configuration.get("key", MyData.class, DEFAULT_DATA);
  
          // Durations
          // Durations are converted to the given unit, for instance for:
          // key = 1 minute
          // key = 2 hours
          long duration = configuration.getDuration("key", TimeUnit.SECONDS);
          duration = configuration.getDuration("key", TimeUnit.SECONDS, 2);
  
  
          // Sizes in bytes to avoid the confusion between powers of 1000 and powers of 1024
          // For instance for
          // key = 1 kB => 1000 bytes
          // key = 1 K => 1024 bytes
          long size = configuration.getBytes("key");
          size = configuration.getBytes("key", 2048);
  
          //end::methods[]
      }
docs: end::retrieve[]