public ObjectData getObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
Boolean major, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension) {
// build URL
UrlBuilder url = getObjectUrl(repositoryId, objectId, Constants.SELECTOR_OBJECT);
url.addParameter(Constants.PARAM_FILTER, filter);
url.addParameter(Constants.PARAM_ALLOWABLE_ACTIONS, includeAllowableActions);
url.addParameter(Constants.PARAM_RELATIONSHIPS, includeRelationships);
url.addParameter(Constants.PARAM_RENDITION_FILTER, renditionFilter);
url.addParameter(Constants.PARAM_POLICY_IDS, includePolicyIds);
url.addParameter(Constants.PARAM_ACL, includeAcl);
url.addParameter(Constants.PARAM_RETURN_VERSION,
(major == null || Boolean.FALSE.equals(major) ? ReturnVersion.LATEST : ReturnVersion.LASTESTMAJOR));
// read and parse
HttpUtils.Response resp = read(url);
Map<String, Object> json = parseObject(resp.getStream(), resp.getCharset());