public String getLastSupportedVersion() throws NumberFormatException, ValueNotFoundException, CannotCheckVersionException {
return getXmlProperties().getValue(LAST_SUPPORTED_VERSION_TAG_NAME);
}
private XmlProperties getXmlProperties() throws CannotCheckVersionException {
HttpCommand hc = new HttpCommand(url);
try {
hc.addParameter("version", new VersionProvider().getVersion());
}
catch (VersionProvisionException exc) {
throw new CannotCheckVersionException(exc);
}
try {
hc.execute();
}
catch (HttpCommandException exc) {
throw new CannotCheckVersionException(exc);
}
return hc.getXmlProperties();
}