public void renameDataSourceDir(String oldDataSourceId, String newDataSourceId) throws FileNotFoundException, IOException { File dataSourceDir = getDataSourceDir(oldDataSourceId); if (dataSourceDir.exists()) { dataSourceDir.renameTo(getDataSourceDir(newDataSourceId)); } }