private void editTask(View view) {
		fillTask(view);
		task.setId(Long.parseLong(view.getRequest().getParameter("id")));
		try{
			if (errors.size() > 0 || !task.isCorrectTask()) {
				view.getRequest().setAttribute("errors", errors);
			} else {
				view.getRequest().setAttribute("success", ImmutableList.of("Task was changed"));
				view.getRequest().setAttribute("task", task);
				if(!taskRepository.editTask(task)){
					view.getRequest().setAttribute("errors", ImmutableList.of("Task wasn't changed"));
				}
			}
		} catch (Exception ex) {
			logger.log(Level.SEVERE, ex.getMessage());
		}
	}