public static SFrame getFrame(WingsSession wingsSession) { String path = wingsSession.getServletRequest().getServletPath(); int pos = path.lastIndexOf('/'); path = path.substring(pos + 1); synchronized (wingsSession.getServletRequest().getSession()) { Map frames = getFrames(wingsSession); SFrame frame = (SFrame)frames.get(path); if (frame == null) { frame = new SFrame(path); frame.setTargetResource(path); frame.show(); frames.put(path, frame); } return frame; } }