class GraphLoader implements AutoCloseable {

    public Map<String, UnitGraphModel> loadGraphInfo(Iterable<? extends String> ids) throws MetaDataNotFoundException {
        try {
            return unitLoadingCache.getAll(ids);
        } catch (CacheLoader.InvalidCacheLoadException e) {
            Matcher matcher = pattern.matcher(e.getMessage());
            if (matcher.matches()) {
                String id = matcher.group(1);
                throw new MetaDataNotFoundException("Cannot find parents: [" + id + "]");
            }
            throw new MetaDataNotFoundException(e);
        } catch (ExecutionException e) {
            throw new VitamRuntimeException(e);
        }
    }

    public  GraphLoader(MongoDbMetadataRepository<Unit> mongoDbMetadataRepository);

}