private User getUserFromSession(String sessionId) { WebSession ws = WebSessionManager.getInstance().getSession(sessionId); if (ws == null) { throw new RuntimeException("Session verification failed:" + sessionId); } User user; try { user = EuareWebBackend.getUser(ws.getUserName(), ws.getAccountName()); } catch (EucalyptusServiceException ex) { throw new RuntimeException("Session verification failed", ex); } return user; }