JmeBinaryReader jbr=new JmeBinaryReader(); jbr.setProperty("texurl",stateTextureDir); Node file=jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray()));
Node file=(Node)BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
    protected void simpleInitGame() {        InputStream statue=TestASEJmeWrite.class.getClassLoader().getResourceAsStream("jmetest/data/model/Statue.ase");        URL stateTextureDir=TestASEJmeWrite.class.getClassLoader().getResource("jmetest/data/model/");        if (statue==null){            System.out.println("Unable to find statue file, did you include jme-test.jar in classpath?");            System.exit(0);        }        AseToJme i=new AseToJme();        ByteArrayOutputStream BO=new ByteArrayOutputStream();        try {            i.convert(statue,BO);            JmeBinaryReader jbr=new JmeBinaryReader();            jbr.setProperty("texurl",stateTextureDir);            Node file=jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray()));            rootNode.attachChild(file);        } catch (IOException e) {            System.out.println("Damn exceptions:"+e);        }    }