private String editTask(Task currentTask) { if (currentTask == null) return ""; taskManager.setCurrentTask(currentTask); Story currentStory = storyManager.getCurrentStory(); if (currentStory != currentTask.getStory()) { storyManager.setCurrentStory(currentTask.getStory()); } return "/task/edit"; }