InitialContext ctx = new InitialContext(env);
RegistryHelper.registerRepository(ctx, repName, repConfig, repHome, true);
repository = (Repository) ctx.lookup(repName);
} catch (Exception e) {
throw new RepositoryStubException(e.toString());
}
}
return repository;
}