new JmeBinaryWriter().writeScene(toReturn,bin);
BinaryExporter.getInstance().save(toReturn, bin);
    public void convert(InputStream max,OutputStream bin) throws IOException {        myIn=new LittleEndien(max);        chunkedTDS=new TDSFile(myIn);        Node toReturn=chunkedTDS.buildScene();        chunkedTDS=null;        myIn=null;        new JmeBinaryWriter().writeScene(toReturn,bin);    }