public T getUser ( String accountName ) { Optional < T > optional = ( Optional < T > ) userStore . findByUsername ( accountName ) ; if ( optional . isPresent ( ) ) { return optional . get ( ) ; } else { return null ; } }
Returns the UserEntry matching the provided accountName . If the accoundId is not found an Anonymous UserEntry or null may be returned .