public Node park(String hostname, boolean forceDeprovision, Agent agent, String reason) {
        try (NodeMutex locked = lockAndGetRequired(hostname)) {
            NestedTransaction transaction = new NestedTransaction();
            Node parked = park(hostname, forceDeprovision, agent, reason, transaction);
            transaction.commit();
            return parked;
        }
    }
Parks this node and returns it in its new state.

@return the node in its new state
@throws NoSuchNodeException if the node is not found
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Nodes.java