*/
public void install(String filename, byte[] data) throws IOException,
PluginException, DocumentException {
Map<String, WarItem> war = readWar(data);
if (!war.containsKey(VOSAO_PLUGIN)) {
throw new PluginException(VOSAO_PLUGIN + " not found");
}
PluginEntity plugin = readPluginConfig(war.get(VOSAO_PLUGIN));
if (StringUtils.isEmpty(plugin.getEntryPointClass())) {
throw new PluginException("Entry point class not defined.");
}
PluginEntity p = getDao().getPluginDao().getByName(plugin.getName());
if (p != null) {
plugin.setConfigData(p.getConfigData());
uninstall(p);