URL textureLocation; if (new File(texture).isAbsolute()) textureLocation=new File(texture).toURL(); else textureLocation=new URL(baseURL,texture);
    private TextureState generateTexture(URL baseURL){        if (myTex!=null || texture.length()==0) return myTex;        myTex=DisplaySystem.getDisplaySystem().getRenderer().getTextureState();        try {            URL textureLocation;            if (new File(texture).isAbsolute())                textureLocation=new File(texture).toURL();            else                textureLocation=new URL(baseURL,texture);            myTex.setTexture(TextureManager.loadTexture(new URL(baseURL,texture),                Texture.MM_LINEAR,                Texture.FM_LINEAR,                true));        } catch (MalformedURLException e) {            LoggingSystem.getLogger().log(                Level.WARNING,                "Couldn't load texture: BaseURL=" + baseURL.toString() + ":" +                    "Texture name:" + texture);            myTex=null;            texture="";            return null;        }        if (myTex==null) throw new JmeException("Problem loading file " + texture);        myTex.setEnabled(true);        return myTex;        //TODO: Support Alpha Maps    }