code: public <V> V executeAndFetch(ResultSetHandler<V> handler) {
          try (ResultSet rs = executeQuery()) {
              return handler.apply(rs);
          } catch (SQLException ex) {
              throw new ApplicationException(Code.BACKEND_ERROR, ex);
          }
      }
docs: Execute the query and pass the {@link ResultSet} to the given handler.
  
  @param handler The {@link ResultSetHandler} to execute.
  @param <V> The return type of this method.
  @return The results of {@link ResultSetHandler#apply(ResultSet)}.