}
}
if (Class.forName("org.w3c.dom.Node").isInstance( varObject)) {
newXObject = new XNodeSetForDOM ( new JSTLNodeList( (Node)varObject ),xctxt );
} else if ( Class.forName("java.lang.String").isInstance( varObject)){
newXObject = new XString ( (String)varObject );
} else if ( Class.forName("java.lang.Boolean").isInstance( varObject) ) {
newXObject = new XBoolean ( (Boolean)varObject );
} else if ( Class.forName("java.lang.Number").isInstance( varObject) ) {
newXObject = new XNumber ( (Number)varObject );
}