String content = getContent(response);
Map versionMap = SocialJSONDecodingSupport.parser(content);
return (String) versionMap.get(VERSION_FIELD);
} catch (RedirectException ex) {
/** does not handle second redirect */
throw new ServiceException(VersionServiceImpl.class, "Does not handle second redirect", ex);
} catch (Exception pex) {
throw new ServiceException(VersionServiceImpl.class, "Failed to getLatest version", pex);
}
}