String openIdPropBase = OpenIdConstants.OPENID_PROPERTY_PREFIX;
for (int index = 1;; index++) {
String opnId = user.getPropertyValue(openIdPropBase + index + OpenIdConstants.OPENID_PROPERTY_URL_SUFFIX);
if (opnId == null) {
user.addPropertyValue(openIdPropBase + index + OpenIdConstants.OPENID_PROPERTY_URL_SUFFIX, userOpenId);
user.addPropertyValue(openIdPropBase + index + OpenIdConstants.OPENID_PROPERTY_ID_SUFFIX, openIdAccName);
user.addPropertyValue(openIdPropBase + index + OpenIdConstants.OPENID_PROPERTY_PROVIDER_SUFFIX, openIdProvider);
session.setAttribute(OpenIdConstants.HTTPSESSION_OPENID_URL, null);
session.setAttribute(OpenIdConstants.HTTPSESSION_OPENID_ID, null);