RecordFormats newFormat = InternalRecordFormatSelector.fromVersion( versionToMigrateTo );
if ( !oldFormat.equals( newFormat ) )
{
if ( newFormat.hasSameCapabilities( oldFormat, CapabilityType.FORMAT ) )
{
<BUG>migrateWithDirectMigration( storeDir, migrationDir, oldFormat, newFormat );
</BUG>
}
else
{

RecordFormats newFormat = InternalRecordFormatSelector.fromVersion( versionToMigrateTo );
if ( !oldFormat.equals( newFormat ) )
{
if ( newFormat.hasSameCapabilities( oldFormat, CapabilityType.FORMAT ) )
{
migrateWithDirectMigration( storeDir, migrationDir, oldFormat, newFormat, progressMonitor );
}
else
{
