url.addParameter(Constants.PARAM_RELATIVE_PATH_SEGMENT, includeRelativePathSegment);
// read and parse
HttpUtils.Response resp = read(url);
AtomBase base = parse(resp.getStream(), AtomBase.class);
if (base instanceof AtomFeed) {
// it's a feed
AtomFeed feed = (AtomFeed) base;