protected List<GrantedAuthority> loadGroupAuthorities(String username) {
    """
	Loads authorities by executing the SQL from
	<tt>groupAuthoritiesByUsernameQuery</tt>.
	
	@return a list of GrantedAuthority objects for the user
    """
		return getJdbcTemplate().query(this.groupAuthoritiesByUsernameQuery,
				new String[] { username }, new RowMapper<GrantedAuthority>() {
					@Override
					public GrantedAuthority mapRow(ResultSet rs, int rowNum)
							throws SQLException {
						String roleName = getRolePrefix() + rs.getString(3);

						return new SimpleGrantedAuthority(roleName);
					}
				});
	}
protected List<GrantedAuthority> loadGroupAuthorities(String username) {
		return getJdbcTemplate().query(this.groupAuthoritiesByUsernameQuery,
				new String[] { username }, new RowMapper<GrantedAuthority>() {
					@Override
					public GrantedAuthority mapRow(ResultSet rs, int rowNum)
							throws SQLException {
						String roleName = getRolePrefix() + rs.getString(3);

						return new SimpleGrantedAuthority(roleName);
					}
				});
	}
protected List < GrantedAuthority > loadGroupAuthorities ( String username ) { return getJdbcTemplate ( ) . query ( this . groupAuthoritiesByUsernameQuery , new String [ ] { username } , new RowMapper < GrantedAuthority > ( ) { @ Override public GrantedAuthority mapRow ( ResultSet rs , int rowNum ) throws SQLException { String roleName = getRolePrefix ( ) + rs . getString ( 3 ) ; return new SimpleGrantedAuthority ( roleName ) ; } } ) ; }
Loads authorities by executing the SQL from
<tt>groupAuthoritiesByUsernameQuery</tt>.

@return a list of GrantedAuthority objects for the user
Loads authorities by executing the SQL from <tt > groupAuthoritiesByUsernameQuery< / tt > .