converter.setProperty("mtllib", name); //tell converter where to find the mtl file
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
try {
converter.convert(name.openStream(), outStream);
//now that it's converted, load the model
model = (Spatial)BinaryImporter.getInstance().load(new ByteArrayInputStream(outStream.toByteArray()));
} catch (IOException e) {
System.err.println("Error while converting or loading the model");