@POST
@Path("tasks/{title}")
public Response createTask(@Context UriInfo info, @Context SecurityContext context,
@PathParam("title") @DefaultValue("task") String taskTitle) {
User user = getUser(context);
Task task = new Task(taskTitle);
taskDao.createTask(user, task);
// Construct the URI for the newly created resource and put in into the Location header of the response