Loading JME Model

Does anyone have an example of how to load a model in the jme format using BinaryImporter as opposed to the deprecated JmeBinaryReader?

See User’s Guide: http://www.jmonkeyengine.com/wiki/doku.php?id=model_loading or:

      player  = new Node("Player");

      try {

         BinaryImporter binaryImporter = new BinaryImporter(); // Used to convert the jme usable file to a Node
         FileInputStream fileInput = new FileInputStream("model.jme"); // load model from jme binary file
    player = (Node)binaryImporter.load(fileInput); //importer returns a Loadable, cast to Node

      } catch(Exception err) {
         System.out.println("Error loading .jme file:" + err);