}
public void setMountpoint(RepositoryAddress addr) throws VltException {
mountpoint = addr;
File dir = new File(exportRoot.getJcrRoot(), VltDirectory.META_DIR_NAME);
MetaDirectory rootMeta = VltContext.createMetaDirectory(dir);
try {
String url = addr.toString();
if (fsRoot.length() > 0 && url.endsWith(fsRoot)) {
url = url.substring(0, url.length() - fsRoot.length());
}
rootMeta.setRepositoryUrl(url);
} catch (IOException e) {
throw new VltException("error while writing repository address.", e);
}
}