String normalizedName = LuceneSupport.derbyIdentifier( fileName );
StorageFile file = parentDir == null ?
storageFactory.newStorageFile( normalizedName ) :
storageFactory.newStorageFile( parentDir, normalizedName );
if ( !file.exists() ) { file.mkdir(); }
if ( !file.exists() )
{
throw LuceneSupport.newSQLException( SQLState.SERVICE_DIRECTORY_CREATE_ERROR, normalizedName );
}
else { return file; }