private URL getUrl ( ) { ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; URL url = loader . getResource ( this . getPath ( ) ) ; return url ; }
Get the url to find out if the resource is available