{
assert version != null && stateMap != null;
for (;version != null; version = version.getNext())
{
UpgradeState state = Upgrade.getState(stateMap, version);
// check for adapter compatibility limiting just to the requested datasource
if (version instanceof RelationalSchemaUpgrade &&
((RelationalSchemaUpgrade)version).getDataSource() == rdb)
{