mounts = parent.getNode("mounts");
} catch (PathNotFoundException nfe) {
mounts = parent.addNode("mounts", "jnt:systemFolder");
}
JCRMountPointNode childNode = null;
if (!mounts.isFile()) {
if (!mounts.isCheckedOut()) {
mounts.checkout();
}
childNode = (JCRMountPointNode) mounts.addNode(name, "jnt:vfsMountPoint");
childNode.setProperty("j:root", root);
boolean valid = childNode.checkMountPointValidity();
if (!valid) {
childNode.remove();
throw new RepositoryException("Invalid path");
}
session.save();
}
if (childNode == null) {