authorities.add(new GrantedAuthorityImpl(sc.getRole()));
OAuthAuthenticationToken newAuthToken = new OAuthAuthenticationToken(new ForceUserPrincipal(sc.getUserName(),
sc.getSessionId()), null, authorities);
newAuthToken.setDetails(sc.getForceSecurityContext());
org.springframework.security.core.context.SecurityContext springSecurityContext = new SecurityContextImpl();
springSecurityContext.setAuthentication(newAuthToken);
SecurityContextHolder.setContext(springSecurityContext);
}