boolean result = writer.write(node);
writer.write(node);
    public String writeToString(Object hopObject) throws IOException {        INode node = null;        if (hopObject instanceof HopObject) {            node = ((HopObject) hopObject).getNode();        }        // we definitly need a node        if (node == null) {            throw new RuntimeException("First argument in Xml.write() is not an hopobject");        }        ByteArrayOutputStream out = new ByteArrayOutputStream();        XmlWriter writer = new XmlWriter(out, "UTF-8");        //  in case we ever want to limit serialization depth...        // if (arguments.length > 1 && arguments[1] instanceof ESNumber)        //     writer.setMaxLevels(arguments[1].toInt32());        writer.setDatabaseMode(false);        boolean result = writer.write(node);        writer.flush();        return out.toString("UTF-8");    }