private static void getProductsOfPerson(Browser browser, int personId) throws GoalNotFoundException {
Agent agent = new Agent(browser);
// order of follow rel actions is significant
agent.addFollowRelAction(new FollowRelAction("search"));
agent.addFollowRelAction(new FollowRelAction("products"));
// enable client to submit form when encountered
agent.addSubmitFormAction(new SubmitFormAction("searchPerson", Args.of("personId", personId)));
agent.setGoal(describedBy("http://example.com/doc#product").within(describedBy("http://example.com/doc#customer")));