}
try
{
IRepositoryProvider instance = (IRepositoryProvider) (Class.forName(provider).newInstance());
IBundleRepository repository = instance.createRepository(name, repo);
return repository;
}
catch (Exception e)
{
String msg = "failed to create repository: ";