Hashtable folders = getFolders(session);  folders.put(folderPath, folder);
	private Folder createWebFolder(HttpSession session, String remoteKey,			String folderPath, String baseURL, String jgalleryContextPath)			throws GalleryException	{		// No need to synchronize access to the Folders because they are per		// session. In the worst case if a user has several browser windows		// (that		// share the same session), there might be unnecessary creations of		// Folders.		Configuration configuration = this.configuration;		Folder folder;		InputStream wis = null;		URL url;		URLConnection connection = null;		try		{			url = new URL(baseURL + folderPath + "images.txt");			connection = url.openConnection();			connection.connect();		}		catch (Exception e)		{			throw new GalleryException(e.getMessage());		}		try		{			wis = connection.getInputStream();			long l = connection.getLastModified();		}		catch (IOException e)		{			throw new GalleryNotFoundException(e.getMessage());		}		try		{			URL url1 = new URL(baseURL + folderPath + CONFIGFILE);			URLConnection connection1 = url1.openConnection();			connection1.connect();			InputStream is = connection1.getInputStream();			if (null != is)			{				Configuration conf = new Configuration(is, configuration);				configuration = conf;			}		}		catch (Exception e1)		{			// nothing		}		configuration = new Configuration(configuration);		configuration.addProperty("thumbnails.create", "false");		ConfigData configData = new ConfigData();		configData.version = version;		configData.urlExtention = urlExtention;		folder = new WebFolder(baseURL, getServletContext(), configuration,				configData, remoteKey, jgalleryContextPath, folderPath, wis);		Hashtable folders = getFolders(session);		folders.put(folderPath, folder);		return folder;	}