// Check if the page has been moved
String currentPath = currentPage.getURI().getPath();
String newPath = page.getURI().getPath();
if ((currentPath != null && !currentPath.equals(newPath) || (currentPath == null && newPath != null))) {
contentRepository.moveAsynchronously(currentPage.getURI(), newPath, true);
}
} catch (SecurityException e) {
logger.warn("Tried to update page {} of site '{}' without permission", workURI, site);
throw new WebApplicationException(Status.FORBIDDEN);
} catch (IOException e) {