getMigrationUi().backupTaskList(monitor);
for (TaskRepository repository : oldRepositories) {
if (monitor.isCanceled()) {
throw new OperationCanceledException();
}
<BUG>monitor.subTask("Migrating " + repository.getRepositoryLabel());
String kind = repository.getConnectorKind();</BUG>
String newKind = getConnectorKinds().get(kind);
TaskRepository newRepository = getMigratedRepository(newKind, repository);
getRepositoryManager().addRepository(newRepository);

getMigrationUi().backupTaskList(monitor);
for (TaskRepository repository : oldRepositories) {
if (monitor.isCanceled()) {
throw new OperationCanceledException();
}
monitor.subTask(NLS.bind(Messages.ConnectorMigrator_Migrating_X, repository.getRepositoryLabel()));
String kind = repository.getConnectorKind();
String newKind = getConnectorKinds().get(kind);
TaskRepository newRepository = getMigratedRepository(newKind, repository);
getRepositoryManager().addRepository(newRepository);
