title: Null check using Optional
body: <p>I want to perform the null check in JDK8 using Optional utility. Here is my code I am writing which giving me an error:</p>
  
  <pre><code>java.util.Optional stringToUse = java.util.Optional.of(childPage.getContentResource().getValueMap().get("jcr:description").toString());
  stringToUse.ifPresent(description = stringToUse);
  </code></pre>
  
  <p>Here "jcr:description" can be present or not. And if its present I want to use that value in description variable and if null the simply set blank String for description. Also can Lambda expression also can be use here? Thanks</p>