StorageFile backupFile = null;
StorageFile servicePropertiesFile = storageFactory.newStorageFile( PersistentService.PROPERTIES_NAME);
if (replace)
{
backupFile = storageFactory.newStorageFile( PersistentService.PROPERTIES_NAME.concat("old"));
try
{
if(!servicePropertiesFile.renameTo(backupFile))
throw StandardException.newException(SQLState.UNABLE_TO_RENAME_FILE,
servicePropertiesFile, backupFile);