Errors errors = null;
// save the story
if (taskForm.getPersistanceId() != 0) {
errors = storyService.deleteTask(taskForm.getStoryPersistanceId(), taskForm.getPersistanceId(), taskForm.getPersistanceVersion());
}
// Convert into struts action errors
ActionMessages actionMessages = new ActionMessages();