{
return new ArrayMessageSequence((Object[]) payload);
}
else if (payload instanceof NodeList)
{
return new NodeListMessageSequence((NodeList) payload);
}
else
{
throw new IllegalArgumentException(CoreMessages.objectNotOfCorrectType(payload.getClass(),
new Class[]{Iterable.class, Iterator.class, MessageSequence.class, Collection.class})