public static String getCurrentContextClassLoaderClassPath ( ) { URLClassLoader contextClassLoader = ( URLClassLoader ) Thread . currentThread ( ) . getContextClassLoader ( ) ; return getUrlClassLoaderClassPath ( contextClassLoader ) ; }
Assumes that the context class loader of the current thread is a URLClassLoader and will throw a runtime exception if it is not .