Added utility function to get list of collections or content models.