URL imageURL = LayerUtils.getResourceOrFileOrURL(this, imageURLString);
URL imageURL = PropUtils.getResourceOrFileOrURL(this, imageURLString);
    protected void setFileProperties(String realPrefix, Properties props) {        shapeFileName = props.getProperty(realPrefix + shapeFileProperty);        spatialIndexFileName            = props.getProperty(realPrefix + spatialIndexProperty);        if (shapeFileName != null && !shapeFileName.equals("")) {            if (spatialIndexFileName != null && !spatialIndexFileName.equals("")) {                spatialIndex =                     SpatialIndex.locateAndSetShapeData(shapeFileName,                                                        spatialIndexFileName);            } else {                spatialIndex =                     SpatialIndex.locateAndSetShapeData(shapeFileName);            }            imageURLString =                 props.getProperty(realPrefix + pointImageURLProperty);            try {                if (imageURLString != null && !imageURLString.equals("")) {                    URL imageURL = LayerUtils.getResourceOrFileOrURL(this, imageURLString);                    ImageIcon imageIcon = new ImageIcon(imageURL);                    spatialIndex.setPointIcon(imageIcon);                }            } catch (MalformedURLException murle) {                Debug.error("ShapeLayer.setFileProperties: point image URL not so good: \n\t" + imageURLString);            } catch (NullPointerException npe) {                // May happen if not connected to the internet.                fireRequestMessage("Can't access icon image: \n    " + imageURLString);            }        } else {            Debug.error("One of the following properties was null or empty:");            Debug.error("\t" + realPrefix + shapeFileProperty);            Debug.error("\t" + realPrefix + spatialIndexProperty);        }    }