.iterator();
// the iterator returns contact objects, but we need it to
// return models, we use this handy adapter class to perform
// on-the-fly conversion.
return new ModelIteratorAdapter(contacts)
{
protected IModel model(Object object)
{
return new DetachableContactModel((Contact)object);