question: private URL createSearchURL ( URL url ) throws MalformedURLException { if ( url == null ) { return url ; } String protocol = url . getProtocol ( ) ; if ( isDirectory ( url ) || protocol . equals ( "jar" ) ) { return url ; } if ( factory == null ) { return new URL ( "jar" , "" , - 1 , url . toString ( ) + "!/" ) ; } return new URL ( "jar" , "" , - 1 , url . toString ( ) + "!/" , factory . createURLStreamHandler ( "jar" ) ) ; }
target:  Returns an URL that will be checked if it contains the class or resource. If the file component of the URL is not a directory, a Jar URL will be created.