}
}
public Volume setNewVolume(Dms oDms, String sVolumeName, String sVolumesMountBase, String sVolumeSubpath, String sRepositorySubpath, int iMaxDocSize, long lTotalSpace)
throws FileNotFoundException, IOException, Exception {
FileSystem oFs = new FileSystem();
final String sRepositoryFullPath = Gadgets.chomp(sVolumesMountBase,File.separator)+sVolumeSubpath+File.separator+sRepositorySubpath;
Log.out.debug("FileSystem.mkdirs(file://"+sRepositoryFullPath+")");
oFs.mkdirs("file://"+sRepositoryFullPath);
File oFl = new File(sRepositoryFullPath);
if (!oFl.exists()) throw new FileNotFoundException("Could not create directory "+sRepositoryFullPath);
VolumeManager oVolm = oDms.getVolumeManager();
Log.out.debug("VolumeManager.createVolume("+sVolumeName+","+Gadgets.chomp(sVolumesMountBase,File.separator)+sVolumeSubpath+File.separator+","+sRepositorySubpath+","+String.valueOf(iMaxDocSize)+")");
Volume oVol = oVolm.createVolume(sVolumeName, Gadgets.chomp(sVolumesMountBase,File.separator)+sVolumeSubpath+File.separator, sRepositorySubpath, iMaxDocSize);