// Check if the resource has been moved
String currentPath = currentResource.getURI().getPath();
String newPath = StringUtils.trimToNull(resource.getURI().getPath());
if (currentPath != null && newPath != null && !currentPath.equals(newPath)) {
contentRepository.move(currentResource.getURI(), newPath, true);
}
} catch (IOException e) {
logger.warn("Error reading udpated resource {} from request", resourceURI);
throw new WebApplicationException(Status.INTERNAL_SERVER_ERROR);
} catch (ParserConfigurationException e) {