syscontext.registerService(ArtifactProviderPlugin.class.getName(), provider, null);
// Create the RepositoryCachePlugin
File cacheFile = syscontext.getDataFile("repository");
RepositoryCachePlugin cache = new FileBasedRepositoryCachePlugin(cacheFile);
// Register the Repository
repository = new RepositoryImpl(new TrackingArtifactProvider(syscontext), cache);
syscontext.registerService(Repository.class.getName(), repository, null);
}