public function swapLocation($locationPath, Request $request)
{
$locationId = $this->extractLocationIdFromPath($locationPath);
$location = $this->locationService->loadLocation($locationId);
$destinationLocation = $this->locationService->loadLocation($this->extractLocationIdFromPath($this->requestParser->parseHref($request->headers->get('Destination'), 'locationPath')));
$this->locationService->swapLocation($location, $destinationLocation);
return new Values\NoContent();
}