final int version = Integer.parseInt(HttpXmlUtils.getChildNodeText(rootNode, "version"));
return new ExtensionSwapPackage(id, version, name);
}
public void registerExtensionPackage(final ExtensionSwapPackage extensionSwapPackage, final String username) {
downloadJarFile(extensionSwapPackage, username, new FileDownloadListener() {
@Override
public void onFilesDownloaded(File[] files) {
File jarFile = files[0];
registerExtensionPackage(extensionSwapPackage, jarFile);
}