code: @NotNull
      protected <A, R> Optional<R> restExceptionBarrier(
              Command<A, R> command,
              Mode mode,
              @Nullable A param
      ) {
          try {
              return executor.execute(command, mode, param);
          } catch (Exception | AssertionError e) {
              if (e instanceof ServiceException) {
                  throw (ServiceException)e;
  //            if (e instanceof WebApplicationException) {
  //                throw (WebApplicationException)e;
              } else {
                  //should never arrive here. nothing we can do.
                  String msg = "Unexpected late exception translation for: "+e.getMessage();
                  logger.error(msg);
                  throw InternalServerErrorServiceExceptions.internalServerError(msg);
              }
          }
      }
docs: Removes the "throws Exception" from the api.