/* (non-Javadoc)
  * @see net.webpasswordsafe.client.LoginService#getLogin()
  */
 @Override
 @Transactional(propagation = Propagation.REQUIRED, readOnly = true)
 public User getLogin() {
   String username = ServerSessionUtil.getUsername();
   User user = userDAO.findActiveUserByUsername(username);
   if (null != user) {
     user.setRoles(ServerSessionUtil.getRoles());
   }
   LOG.debug("logged in user="******"null" : user.getUsername()));
   return user;
 }
 /* (non-Javadoc)
  * @see net.webpasswordsafe.client.LoginService#logout()
  */
 @Override
 public boolean logout() {
   auditLogger.log(
       new Date(),
       ServerSessionUtil.getUsername(),
       ServerSessionUtil.getIP(),
       "logout",
       "",
       true,
       "");
   ServerSessionUtil.setUsername(null);
   ServerSessionUtil.setRoles(null);
   ServerSessionUtil.invalidateSession();
   return true;
 }