plugin_interface = (PluginInterfaceImpl) pi;
plugin_interface.setPluginVersion("0.0");
if (plugin_name == null)
plugin_interface.setPluginName(plugin_interface.getPluginID());
else
plugin_interface.setPluginName(plugin_name);
if (plugin_dir != null)
plugin_interface.setPluginDirectoryName(plugin_dir);