private static Class<?> loadVMClass(Resource toolsJar, Log log, JavaVendor vendor) {
	try {
	    ClassLoader loader = ClassLoader.getSystemClassLoader();
	    String cls = vendor.getVirtualMachineClassName();
	    // if (!vendor.isIBM()) {
	    loader = new URLClassLoader(new URL[] { ((FileResource) toolsJar).toURI().toURL() }, loader);
	    // }
	    return loader.loadClass(cls);
	}
	catch (Exception e) {
	    log.log(Log.LEVEL_INFO, "Instrumentation", e);

	}
	return null;
    }
private static Class < ? > loadVMClass ( Resource toolsJar , Log log , JavaVendor vendor ) { try { ClassLoader loader = ClassLoader . getSystemClassLoader ( ) ; String cls = vendor . getVirtualMachineClassName ( ) ; loader = new URLClassLoader ( new URL [ ] { ( ( FileResource ) toolsJar ) . toURI ( ) . toURL ( ) } , loader ) ; return loader . loadClass ( cls ) ; } catch ( Exception e ) { log . log ( Log . LEVEL_INFO , "Instrumentation" , e ) ; } return null ; }
If <b>ibm</b> is false, this private method will create a new URLClassLoader and attempt to load
the com.sun.tools.attach.VirtualMachine class from the provided toolsJar file.

<p>
If <b>ibm</b> is true, this private method will ignore the toolsJar parameter and load the
com.ibm.tools.attach.VirtualMachine class.


@return The AttachAPI VirtualMachine class <br>
or null if something unexpected happened.