protected NFCRepositoryResource createNFCRepositoryResource(Repository repository) {
NFCRepositoryResource repoNfc = new NFCRepositoryResource();
repoNfc.setRepositoryId(repository.getId());
CacheStatistics stats = repository.getNotFoundCache().getStatistics();
NFCStats restStats = new NFCStats();
restStats.setSize(stats.getSize());
restStats.setHits(stats.getHits());
restStats.setMisses(stats.getMisses());
repoNfc.setNfcStats(restStats);
repoNfc.getNfcPaths().addAll(repository.getNotFoundCache().listKeysInCache());