skinManager = currentNode.getNode ("skinmanager", true);
skinManager = currentNode == null ? null : currentNode.getNode ("skinmanager", true);
    public Skin getSkin (ESObject thisObject, String skinname) {	INode n = null;	Prototype proto = null;	Skin skin = null;	// FIXME: we can't do that, because if no db skinmanager exists we'll query over and over again	if (skinManager == null) {	    skinManager = currentNode.getNode ("skinmanager", true);	    // System.err.println ("SKINMGR: "+skinManager);	    // mark as null	    if (skinManager == null)	        skinManager = new Node ("dummy");	}	if (thisObject != null && thisObject instanceof ESNode) {	    n = ((ESNode) thisObject).getNode ();	    // System.err.println ("GOT SKINMGR "+skinNode+" FROM "+n);	    if (skinManager != null && !"dummy".equals (skinManager.getName())) {	        skin = getSkinFromNode (skinManager, n.getPrototype (), skinname);	        if (skin != null)	            return skin;	    }	    proto = app.getPrototype (n);	} else {	    // the requested skin is global - start from currentNode (=end of request path) for app skin retrieval	    if (skinManager != null) {	        skin = getSkinFromNode (skinManager, "global", skinname);	        if (skin != null)	            return skin;	    }	    proto = app.typemgr.getPrototype ("global");	}	if (proto != null)	    skin = proto.getSkin (skinname);	// if we have a thisObject and didn't find the skin, try in hopobject	if (skin == null && n != null) {	    proto = app.typemgr.getPrototype ("hopobject");	    if (proto != null)	        skin = proto.getSkin (skinname);	}	return skin;    }