{
return new IteratorMessageSequence<Object>(((Iterator<Object>) payload));
}
if (payload instanceof Collection)
{
return new CollectionMessageSequence(new LinkedList((Collection) payload));
}
if (payload instanceof Iterable<?>)
{
return new IteratorMessageSequence<Object>(((Iterable<Object>) payload).iterator());
}