This will throw an exception if it fails; you should probably catch it here and return an appropriate error response.