docs: private <X> X executeLockingMethod(Supplier<X> method) {
          try {
              return method.get();
          } catch (JanusGraphException e) {
              if (e.isCausedBy(TemporaryLockingException.class) || e.isCausedBy(PermanentLockingException.class)) {
                  throw TemporaryWriteException.temporaryLock(e);
              } else {
                  throw GraknServerException.unknown(e);
              }
          }
      }