return result;
}
public String setTokenStep2 (String username,String appCode) throws ResetPasswordException{
ODocument resetRecord = getCurrentResetRecord(username);
if (resetRecord==null) throw new ResetPasswordException("No reset record found");
String sRandom = appCode + "%%%%" + username + "%%%%" + UUID.randomUUID();
String sBase64Random = new String(Base64.encodeBase64(sRandom.getBytes()));
resetRecord.field(ATTRIBUTES_BASE64CODE_STEP2,sBase64Random);
resetRecord.save();