Added a method to the model factory to map keys to a list of model objects.