Node modelNode = null;
URL origFile = settings.getModelURL();
HashMap<URL, String> textureFilesMapping = new HashMap();
ImportedModel importedModel = new ImportedModel(origFile, textureFilesMapping);
SimpleResourceLocator resourceLocator=null;
try {
URL baseDir = new URL(origFile.toExternalForm().substring(0, origFile.toExternalForm().lastIndexOf('/')+1));
resourceLocator = new RecordingResourceLocator(baseDir, textureFilesMapping);
ResourceLocatorTool.addThreadResourceLocator(
ResourceLocatorTool.TYPE_TEXTURE,