title: How to return value in orElse in Optional?
body: <p>I have Optional object </p>
  
  <pre><code>Optional&lt;Instrument&gt; instrument = instrumentService.findOne(id);
  </code></pre>
  
  <p>And i have two scenario. First return ResponseEntity.ok if object is present and second is return ResponseEntity.noContent().build().
  I have function </p>
  
  <pre><code>instrument.map(instrument1 -&gt; {
              return ResponseEntity.ok(instrumentMapper.toDto(instrumentRepository.save(instrument1)));
          })
          .//return noContent here;
  </code></pre>
  
  <p>What i need to write after dot to return necessary part?</p>