static ClassLoader getClassLoader(final Class<?> clazz) {
        if (System.getSecurityManager() == null) {
            return clazz.getClassLoader();
        }
        return AccessController
                .doPrivileged(new PrivilegedAction<ClassLoader>() {
                    @Override
                    public ClassLoader run() {
                        return clazz.getClassLoader();
                    }
                });
    }
static ClassLoader getClassLoader ( final Class < ? > clazz ) { if ( System . getSecurityManager ( ) == null ) { return clazz . getClassLoader ( ) ; } return AccessController . doPrivileged ( new PrivilegedAction < ClassLoader > ( ) { @ Override public ClassLoader run ( ) { return clazz . getClassLoader ( ) ; } } ) ; }
@return the ClassLoader for the given class