private String getPath ( URL url ) { String path = url . toExternalForm ( ) ; return path . replaceAll ( "bundle://[^/]*/" , "" ) ; }
remove bundle protocol specific part so that resource can be accessed by path relative to bundle root