private static @NotNull Ref putAdhocReference(@NotNull Object item, @NotNull Session session) {
    return session.putReference(item);
  }
private static @NotNull Ref putAdhocReference(@NotNull Object item, @NotNull Session session)