if(a instanceof AuthSuccessfull) {
AuthSuccessfull as = (AuthSuccessfull)a;
SecurityHelper.saveAuthentification(request.getSession(), a);
uak = as.getKey();
} else {
throw new InvalidUAKException(uak);
}
} else {
if (request.getSession() != null) {
SecurityHelper.putInSession(request.getSession(), uak);
}