code: static String parseLastReleaseBuild(File mdFile, ProtocVersion protocVersion) throws IOException {
  		int lastBuild = 0;
  		try {
  			DocumentBuilder xmlBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
  			Document xmlDoc = xmlBuilder.parse(mdFile);
  			NodeList versions = xmlDoc.getElementsByTagName("version");
  			for (int i = 0; i < versions.getLength(); i++) {
  				Node ver = versions.item(i);
  				String verStr = ver.getTextContent();
  				if (verStr.startsWith(protocVersion.mVersion+"-build")) {
  					String buildStr = verStr.substring(verStr.indexOf("-build")+"-build".length());
  					int build = Integer.parseInt(buildStr);
  					if (build > lastBuild) lastBuild = build;
  				}
  			}
  		}
  		catch (Exception e) {
  			throw new IOException(e);
  		}
  		if (lastBuild > 0) return protocVersion.mVersion+"-build"+lastBuild;
  		return null;
  	}
docs: find last build (if any) from maven-metadata.xml