throws AuthenticationException {
if (authentication instanceof UsernamePasswordAuthenticationToken) {
// deal with remote access to internal server
throws AuthenticationException {
if (authentication instanceof UsernamePasswordAuthenticationToken) {
// deal with remote access to internal server