try {
seo.saveUrlMappings(node, updatedLocales, mappings, retrieveCurrentSession());
} catch (ConstraintViolationException e) {
// TODO handle it and display correct messages for the user
logger.error(e.getMessage(), e);
throw new GWTJahiaServiceException(e.getMessage());
} catch (RepositoryException e) {
logger.error(e.getMessage(), e);
throw new GWTJahiaServiceException(e.getMessage());
}
}