private static void configureAuthentication(final String role) {
		final Collection<GrantedAuthority> authorities = AuthorityUtils.createAuthorityList(role);
		final Authentication authentication = new UsernamePasswordAuthenticationToken("service.impl.BootstrapDefaultConfig", "n/a", authorities);
		SecurityContextHolder.getContext().setAuthentication(authentication);
	}
private static void configureAuthentication(final String role) {
		final Collection<GrantedAuthority> authorities = AuthorityUtils.createAuthorityList(role);
		final Authentication authentication = new UsernamePasswordAuthenticationToken("service.impl.BootstrapDefaultConfig", "n/a", authorities);
		SecurityContextHolder.getContext().setAuthentication(authentication);
	}
private static void configureAuthentication ( final String role ) { final Collection < GrantedAuthority > authorities = AuthorityUtils . createAuthorityList ( role ) ; final Authentication authentication = new UsernamePasswordAuthenticationToken ( "service.impl.BootstrapDefaultConfig" , "n/a" , authorities ) ; SecurityContextHolder . getContext ( ) . setAuthentication ( authentication ) ; }
Configure authentication.

@param role
the role
Configure authentication .