class RepositoryConnectController implements IConnectedRepositoryInstance {

  public boolean setDefaultRepository( String name ) {
    RepositoriesMeta repositoriesMeta = getRepositoriesMeta();

    for ( int i = 0; i < repositoriesMeta.nrRepositories(); i++ ) {
      RepositoryMeta repositoryMeta = repositoriesMeta.getRepository( i );
      repositoryMeta.setDefault( repositoryMeta.getName().equals( name ) );
    }
    try {
      repositoriesMeta.writeData();
    } catch ( KettleException ke ) {
      log.logError( "Unable to set default repository", ke );
      return false;
    }
    return true;
  }

  public  RepositoryConnectController( PluginRegistry pluginRegistry, Supplier<Spoon> spoonSupplier );
  public  RepositoryConnectController();

}