protected final Optional < UserAccount > getActiveUserAccount ( ) { final DataContainer < UserAccount , Long > dataContainer = getApplicationManager ( ) . getDataContainer ( UserAccount . class ) ; return dataContainer . getAllBy ( UserAccount_ . userId , UserContextUtil . getUserIdFromSecurityContext ( ) ) . stream ( ) . findFirst ( ) ; }
Gets the active user account .