List<ResultPublication> resultPublications = new ArrayList<ResultPublication>(); Result result = null; for (ResultParticipation resultParticipation : getResultParticipations()) { result = resultParticipation.getResult();  if (result instanceof ResultPublication) { resultPublications.add((ResultPublication) result); } } return resultPublications;
List<ResultPublication> resultPublications = new ArrayList<ResultPublication>(); Result result = null; for (ResultParticipation resultParticipation : this.getResultParticipations()) { result = resultParticipation.getResult();  if (result instanceof ResultPublication) { resultPublications.add((ResultPublication) result); } } return resultPublications;
    public List<ResultPublication> getResultPublications() {	List<ResultPublication> resultPublications = new ArrayList<ResultPublication>();	Result result = null;	for (ResultParticipation resultParticipation : getResultParticipations()) {	    result = resultParticipation.getResult();	    // filter only publication participations	    if (result instanceof ResultPublication) {		resultPublications.add((ResultPublication) result);	    }	}	return resultPublications;    }