Set<StoryView> storiesToReturn = new HashSet<StoryView>();
for (Iterator iterator = stories.iterator(); iterator.hasNext();) {
Story story = (Story) iterator.next();
StoryView storyView = new StoryView();
storyView.setDescription(story.getDescription());
storyView.setDaysEstimated(story.getDaysEstimated());
storyView.setNumberOfTask(story.getTasks().size());
storyView.setPersistanceId(story.getPersistanceId());
storyView.setPersistanceVersion(story.getPersistanceVersion());
storyView.setShortDescription(story.getShortDescription());
storyView.setBusinessValue(story.getBusinessValue().getDescription());
storyView.setRiskLevel(story.getRiskLevel().getDescription());
storyView.setPercentCompleted(story.percentCompleted());
storyView.setWarning(story.warning());
storiesToReturn.add(storyView);
}