@Override
    @SuppressWarnings("deprecation")
    public CuratorTransaction and(CuratorTransaction transaction) throws Exception {
        if (data.isPresent()) {
            return transaction.create().forPath(path, data.get()).and();
        } else {
            return transaction.create().forPath(path).and();
        }
    }
ZooKeeper create operation.

@author Ulf Lilleengen
@author bratseth
zkfacade/src/main/java/com/yahoo/vespa/curator/transaction/CuratorCreateOperation.java