Method getVersion = pluginClass.getMethod("getVersion",new Class[0]);
try {
Version version = (Version)getVersion.invoke(pluginClass, new Object[0]);
PluginBaseInfo baseInfo = new PluginBaseInfo("java." + pluginClass.getName(),version);
if(!availablePlugins.contains(baseInfo)) {
availablePlugins.add(baseInfo);
}
} catch (Exception e) {
}
} catch (Throwable t) {
urls = null;
pluginClass = null;
System.gc();
PluginBaseInfo baseInfo = new PluginBaseInfo("java." + pluginName.toLowerCase() + "." + pluginName, new Version(0,0));
if(!availablePlugins.contains(baseInfo)) {
availablePlugins.add(baseInfo);
}