}
public List<AlertCondition> allOfStream(Stream stream) throws APIException, IOException {
List<AlertCondition> conditions = Lists.newArrayList();
AlertConditionsResponse response = api.path(routes.StreamAlertConditionResource().list(stream.getId()), AlertConditionsResponse.class)
.execute();
for (AlertConditionSummaryResponse c : response.conditions) {
conditions.add(alertConditionFactory.fromSummaryResponse(c));
}