public void doGet(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse) throws ServletException, IOException {
HttpSession localHttpSession = paramHttpServletRequest.getSession();
synchronized (localHttpSession) {
SessionContextInterface localSessionContextInterface1 = (SessionContextInterface) localHttpSession.getAttribute("sas_localSessionContext_ReportLauncher");
try {
if (localSessionContextInterface1 == null) {
LocalDiscoveryServiceInterface localLocalDiscoveryServiceInterface = DiscoveryService.defaultInstance();
Object localObject1 = (UserServiceInterface) localLocalDiscoveryServiceInterface.findService(new ServiceTemplate(new Class[]{UserServiceInterface.class}));
log.debug(new StringBuilder().append("To verify with given configurations [user:").append(this.username)
.append(", password:").append(password).append(", domain:").append(this.domain)
.append(", viewer: ").append(this.viewer).append("]").toString());
Object localObject2 = ((UserServiceInterface) localObject1).newUser(this.username, this.password, this.domain);
if (localHttpSession != null) {
SessionBindingListener.getInstance(localHttpSession).addUserContext((UserContextInterface) localObject2);
}
Object localObject3 = (SessionServiceInterface) localLocalDiscoveryServiceInterface.findService(new ServiceTemplate(new Class[]{SessionServiceInterface.class}));
localSessionContextInterface1 = ((SessionServiceInterface) localObject3).newSessionContext((UserContextInterface) localObject2);
((UserContextInterface) localObject2).setSessionContext(localSessionContextInterface1);
if (localHttpSession != null) {
localHttpSession.setAttribute("sas_localSessionContext_ReportLauncher", localSessionContextInterface1);
log.debug(new StringBuilder().append("Local session created for user ").append(this.username).append(" - session key=").append(localSessionContextInterface1.getEntityKey()).toString());
SessionBindingListener.getInstance(localHttpSession).addSessionContext(localSessionContextInterface1, "ReportViewerLauncher_lock");
}
}
} catch (Exception localException1) {
showErrorMessage(paramHttpServletRequest, paramHttpServletResponse, localException1.getMessage());
localException1.printStackTrace();
return;
}
if (localSessionContextInterface1 != null) {
SessionContextInterface localSessionContextInterface2 = null;
try {
Object localObject1 = null;
String sessionId = paramHttpServletRequest.getParameter("saspfs_sessionid");
if ((sessionId != null) && (sessionId.length() > 1)) {