private FileSystem addDocumentToRepository(File rootFile, boolean writeable)
throws IOException, PropertyVetoException
{
Repository repo = Repository.getDefault();
OpenOfficeDocFileSystem oofs;
oofs = (OpenOfficeDocFileSystem)getMountedDocument(rootFile);
if(oofs != null)
repo.removeFileSystem(oofs);
oofs = new OpenOfficeDocFileSystem();
oofs.setDocument(rootFile);
repo.addFileSystem(oofs);
return oofs;
}