bindParameters(transformer, message);
bindDocument(message.getPayload(), transformer);
XQResultSequence result = transformer.executeQuery();
//No support for return Arrays yet
List results = new ArrayList();
while (result.next())
{
XQItem item = result.getItem();
Class type = returnType.getType();
if (Node.class.isAssignableFrom(type) || Node[].class.isAssignableFrom(type))
{
results.add(item.getNode());