try {
String proxyFileName = getProxyFileName(pluginFile);
DataOutputStream out = new DataOutputStream(new
BufferedOutputStream(new FileOutputStream(proxyFileName)));
PluginInfo info = proxy.getInfo();
out.writeUTF(info.getName());
out.writeUTF(info.getAuthor());
out.writeUTF(info.getDescription());
String license = info.getLicense();
if (license == null) {
license = "";
}
out.writeUTF(license);
info.getVersion().writeData(out); //write version
out.writeUTF(proxy.getId());
out.writeLong(pluginFile.length());
out.writeUTF(proxy.getPluginFileName());
out.close();