String tokenRev = passwordRecoveryToken.getVersion();
if( null == tokenRev ){
throw new Exception("Revision not provided in password recovery token");
}
if( false == tokenRev.equals( rev.substring(0, tokenRev.length()) ) ){
throw new UserUpdatedException("Password recovery token refers to an older version of the user document");
}
}
JSONObject result = new JSONObject();
result.put("valid", true);