using the listHeads method on Store
use a more efficient method to list metadata ids in a repository