* be converted, an exception should be thrown
*/
public Value convertObjectToXPathValue(Object object, Configuration config) throws XPathException {
if (object instanceof Node) {
return new SingletonNode(wrapNode((Node)object, config));
} else if (object instanceof Node[]) {
NodeInfo[] nodes = new NodeInfo[((Node[])object).length];
for (int i=0; i<nodes.length; i++) {
nodes[i] = wrapNode(((Node[])object)[i], config);
}