private SecurityContext securityContext;
@POST
@Path("/start/{project_id}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
<BUG>public Response start(@PathParam("project_id") long projectId, LearnerConfiguration configuration) {
User user = ((UserPrincipal) securityContext.getUserPrincipal()).getUser();</BUG>
LOGGER.traceEntry("start({}, {}) for user {}.", projectId, configuration, user);
try {
if (

private SecurityContext securityContext;
@POST
@Path("/start/{project_id}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response start(@PathParam("project_id") long projectId, LearnerConfiguration configuration)
throws NotFoundException {
User user = ((UserPrincipal) securityContext.getUserPrincipal()).getUser();
LOGGER.traceEntry("start({}, {}) for user {}.", projectId, configuration, user);
try {
if (
