code: public Repository getRepository(String instanceId) throws WIMException {
          RepositoryWrapper repositoryHolder = repositories.get(instanceId);
          if (repositoryHolder != null) {
              return repositoryHolder.getRepository();
          }
          return null;
      }
docs: {@inheritDoc} This lookup is done for all registered RepositoryFactory
  instances. Please note that this method does not use the configuration
  data for the RepositoryService for this lookup.