public synchronized Repository getRepository() throws RepositoryStubException {
if (repository == null) {
try {
String url = environment.getProperty(PROP_REPOSITORY_URL);
final RepositoryService service = createService(url);
repository = RepositoryImpl.create(new AbstractRepositoryConfig() {
public RepositoryService getRepositoryService() {
return service;
}
});
} catch (Exception e) {