String url = "/rs/products/{prodName}/versions";
prodName = URLEncoder.encode(prodName, "UTF-8").replace("+", "%20");
url = url.replace("{prodName}", prodName);
WebResource webResource = connectionManager.getConnection().resource(
connectionManager.getConfig().getUrl() + url);
Versions vers = get(webResource, Versions.class);
return vers.getVersion();
}