public VFSContainer getContainer(Identity identity) {
// merge /public and /private
MergeSource homeMergeSource = new MergeSource(null, identity.getName());
// mount /public
OlatRootFolderImpl vfsPublic = new OlatRootFolderImpl(getRootPathFor(identity) + "/public", homeMergeSource);
vfsPublic.getBasefile().mkdirs(); // lazy initialize folders
// we do a little trick here and wrap it again in a NamedContainerImpl so
// it doesn't show up as a OlatRootFolderImpl to prevent it from editing its MetaData
OlatNamedContainerImpl vfsNamedPublic = new OlatNamedContainerImpl("public", vfsPublic);
// mount /private
OlatRootFolderImpl vfsPrivate = new OlatRootFolderImpl(getRootPathFor(identity) + "/private", homeMergeSource);
vfsPrivate.getBasefile().mkdirs(); // lazy initialize folders
// we do a little trick here and wrap it again in a NamedContainerImpl so
// it doesn't show up as a OlatRootFolderImpl to prevent it from editing its MetaData
OlatNamedContainerImpl vfsNamedPrivate = new OlatNamedContainerImpl("private", vfsPrivate);
// set quota for this merge source