// Ask loader to ignore lights, fogs...
loader.setFlags(loader.getFlags()
& ~(Loader.LOAD_LIGHT_NODES | Loader.LOAD_FOG_NODES
| Loader.LOAD_BACKGROUND_NODES | Loader.LOAD_VIEW_GROUPS));
// Return the first scene that can be loaded from model URL content
Scene scene = loader.load(urlContent.getURL());
BranchGroup modelNode = scene.getSceneGroup();
// If model doesn't have any child, consider the file as wrong
if (modelNode.numChildren() == 0) {
throw new IllegalArgumentException("Empty model");
}