class LocalDhisResourceRepositoryImpl implements LocalDhisResourceRepository<T> {

    @Override
    @Nonnull
    public Collection<T> found( @Nonnull Collection<T> resources, @Nonnull String key )
    {
        collectionKeys.add( key );

        if ( resources.isEmpty() )
        {
            return Collections.emptyList();
        }

        final List<T> result = new ArrayList<>( resources.size() );
        resources.forEach( r -> result.add( store( r, null, true ) ) );

        return result;
    }

    public  LocalDhisResourceRepositoryImpl( @Nonnull Class<T> resourceClass );

}