title: how to write lambda expression for the abstract class
body: <p>I have abstract class which have two methods as follows:</p>
  
  <pre><code>public abstract class SessionExecutionBody {
     public Object execute() {
       executeWithoutResult();
       return null;
     }
  
     public void executeWithoutResult() {}
  } 
  </code></pre>
  
  <p>and I implement the class as follows:</p>
  
  <pre><code>final HTTPDestination destination = sessionService.executeInLocalView(new SessionExecutionBody() {
              @Override
              public Object execute() {
                  userService.setCurrentUser(userService.getAdminUser());
                  final String destinationName = getConfigurationService().getConfiguration().getString(DESTINATION_PROPERTY);
                  return getHttpDestinationService().getHTTPDestination(destinationName);
  </code></pre>
  
  <p>When I run sonarLint its showing major issue convert this anonymous class to lambda expression but I am unable to find the way to right the same , Can I convert that expression into a lambda?</p>