question: public static boolean isUrl ( String resourceLocation ) { if ( resourceLocation == null ) { return false ; } if ( resourceLocation . startsWith ( CLASSPATH_URL_PREFIX ) ) { return true ; } try { new URL ( resourceLocation ) ; return true ; } catch ( MalformedURLException ex ) { return false ; } }
target:  Return whether the given resource location is a URL: either a special "classpath" pseudo URL or a standard URL.