@Transactional
    public Step createStep(Integer taskId, String stepName) {
        Task task = tasksDao.getById(taskId);
        if (task == null) {
            throw new RuntimeException("No such task");
        }

        Step step = new Step();
        step.setTask(task);
        step.setName(stepName);
        step.setPriority(prioritiesDao.getByValue(Priority.DEFAULT_VALUE));
        step.setStatus(statusesDao.getByValue(Status.DEFAULT_VALUE));

        step.setId(stepsDao.save(step));

        return step;
    }