code: public Optional<T> updateResourceWithLog() {
          Optional<T> resourceAsOpt = updateResource();
          log.debug("Updated Resource - {}",
                  updateResource().isPresent() ? "YES" : "NO");
          return resourceAsOpt;
      }
docs: Update resource with log optional.
  
  @return the optional