//Update Session Data
log.debug("UDPATE SESSION "+SID+", "+userId);
Sessionmanagement.getInstance().updateUserWithoutSession(SID, userId);
Users user = Usermanagement.getInstance().getUserById(userId);
if (user != null) {
currentClient.setExternalUserId(user.getExternalUserId());
currentClient.setExternalUserType(user.getExternalUserType());
}
//only fill this value from User-Record
//cause invited users have non
//you cannot set the firstname,lastname from the UserRecord
Users us = UsersDaoImpl.getInstance().getUser(userId);
if (us!=null && us.getPictureuri()!=null){
//set Picture-URI
log.debug("###### SET PICTURE URI");
currentClient.setPicture_uri(us.getPictureuri());
}
this.clientListManager.updateClientByStreamId(streamid, currentClient);
return currentClient;
} catch (Exception err){
log.error("[setUsername]",err);