public void writeApplication(Application application, NestedTransaction transaction) {
        db.newCuratorTransactionIn(transaction)
          .add(createOrSet(applicationPath(application.id()),
                                        ApplicationSerializer.toJson(application)));
    }
Acquires the single cluster-global, reentrant lock with the specified timeout for active nodes of this application
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CuratorDb.java