public Stat set(Path path, byte[] data, int expectedVersion) {
        if (data.length > juteMaxBuffer)
            throw new IllegalArgumentException("Cannot not set data at " + path.getAbsolute() + ", " +
                                               data.length + " bytes is too much, max number of bytes allowed per node is " + juteMaxBuffer);

        if ( ! exists(path))
            create(path);

        String absolutePath = path.getAbsolute();
        try {
            return framework().setData().withVersion(expectedVersion).forPath(absolutePath, data);
        } catch (Exception e) {
            throw new RuntimeException("Could not set data at " + absolutePath, e);
        }
    }
A convenience method which sets some content at a path.
If the path and any of its parents does not exists they are created.
zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java