It's more simple than that. Just simulate the click event and then get the WebResponse
:
HtmlElement anchorAttachment = (HtmlElement) pageETrackerItem.getByXPath(".../a").get(0);
InputStream is = anchorAttachment.click().getWebResponse().getContentAsStream();