TestEmu.loadPseudoPlugin(id, plugin.getClassName());
} else {
String ver = (plugin.getPluginVersion().length() == 0) ?
System.getProperty("os.version") : plugin.getPluginVersion();
try {
PluginManager mgr = InitialNaming.lookup(PluginManager.NAME);
PluginRegistry reg = mgr.getRegistry();
if (reg.getPluginDescriptor(id) == null) {
reg.loadPlugin(mgr.getLoaderManager(), new PluginReference(id, new Version(ver)), true);
}
} catch (Exception ex) {
System.out.println(ex.getMessage());
throw new TestRunnerException(
"Cannot load plugin '" + plugin.getPluginId() + "/" + ver + "'", ex);