@Override
    public Task taskDetail(int taskId) {
        Map<String, Object> parameters = new HashMap<String, Object>();
        parameters.put("taskId", taskId);
        List<Task> tasks;
        try {
            tasks = jdbcTemplate.query(GET_TASK_DETAIL,
                    parameters, new TasksRowMapper());
        } catch (Exception e) {
            return null;
        }
        return tasks != null ? tasks.get(0) : null;
    }