String versionableUuid = TreeUtil.getString(a, JcrConstants.JCR_UUID);
vhPath = getVersionHistoryPath(versionableUuid, vs);
}
private String getVersionHistoryPath(String vUUID, final Tree vs) {
ReadOnlyVersionManager vMgr = new ReadOnlyVersionManager() {
@Nonnull
@Override
protected Tree getVersionStorage() {
return vs;
}
@Nonnull
@Override
protected Root getWorkspaceRoot() {
return root;
}
@Nonnull
@Override
protected ReadOnlyNodeTypeManager getNodeTypeManager() {
throw new UnsupportedOperationException();
}
};
return VersionConstants.VERSION_STORE_PATH + '/' + vMgr.getVersionHistoryPath(vUUID);
}