code: public T withLwtResultListener(LWTResultListener lwtResultListener) {
          this.lwtResultListeners = Optional.of(asList(lwtResultListener));
          return getThis();
      }
docs: Add a single LWT result listeners. Example of usage:
  <pre class="code"><code class="java">
  LWTResultListener lwtListener = new LWTResultListener() {
  
  public void onError(LWTResult lwtResult) {
  
  //Get type of LWT operation that fails
  LWTResult.Operation operation = lwtResult.operation();
  
  // Print out current values
  TypedMap currentValues = lwtResult.currentValues();
  currentValues
  .entrySet()
  .forEach(entry -> System.out.println(String.format("%s = %s",entry.getKey(), entry.getValue())));
  }
  };
  </code></pre>