throw StandardException.newException(SQLState.SERVICE_DIRECTORY_EXISTS_ERROR,
getDirectoryPath( name));
}
}
if (serviceDirectory.mkdirs())
{
serviceDirectory.limitAccessToOwner();
// DERBY-5096. The storageFactory canonicalName may need to be adjusted
// for casing after the directory is created. Just reset it after making the
// the directory to make sure.