title: How to return orElseThrow in a same condition with ifPresent using Java 8?
body: <p>I have a Java 8 code below using ifPresent, I want in the same condition to use orElseThrow  <code>chatSessionStore.get(group)</code>  Already returns a Optional object.</p>
  
  <pre><code>@Override
  public void forwardMessageGroup(String group, ChatMessage message) {
  
      chatSessionStore.get(group).ifPresent(chatProxy -&gt; chatProxy.sendMessage(message));
  
  }
  </code></pre>
  
  <p>Any tips?</p>