Set<ReleaseView> releasesView = new HashSet<ReleaseView>();
// copy the properties from the release to the view
for (Release release : releases) {
ReleaseView releaseView = new ReleaseView();
BeanUtils.copyProperties(releaseView, release);
// set the warning
releaseView.setWarning(release.warning());
releasesView.add(releaseView);
}
// put the list in the wiev