}
public Repository getRepository(String repositoryName, String tableName)
throws InterruptedException, RepositoryException {
if (!repositoryModel.repositoryExistsAndActive(repositoryName)) {
throw new RepositoryUnavailableException("Repository does not exist or is not active: " + repositoryName);
}
RepoTableKey key = new RepoTableKey(repositoryName, tableName);
if (!repositoryCache.containsKey(key)) {
synchronized (repositoryCache) {
if (!repositoryCache.containsKey(key)) {