String role = PentahoSystem
.getSystemSetting( "anonymous-authentication/anonymous-role", "Anonymous" ); //$NON-NLS-1$//$NON-NLS-2$
GrantedAuthority[] authorities = new GrantedAuthority[] { new GrantedAuthorityImpl( role ) };
Authentication auth =
new AnonymousAuthenticationToken( "anonymousUser", new User( user, "ignored", true, true, true, true,
authorities ), authorities );
SecurityContextHolder.getContext().setAuthentication( auth );
return callable.call();
} finally {