Log.logException(Log.ERROR, MODULE, ioe);
Log.logException(Log.LEVEL_ERROR, MODULE, ioe);
		void runTask() {            Object [] params = {g.toString()};			status(su, StatusUpdate.LEVEL_GENERIC, grRes.getString(MODULE, "getAlbmInfo", params));			// if the parent is null (top-level album), set the album name to an illegal name so it's set to null			// by Gallery. Using an empty string doesn't work, because then the HTTP parameter is not			// parsed, and the session album is kept the same as before (from the cookie).			String parentAlbumName = (parentAlbum == null) ? "hack_null_albumName" : parentAlbum.getName();			if (GalleryRemote.getInstance().properties.getBooleanProperty(HTML_ESCAPE_CAPTIONS)) {				albumTitle = HTMLEscaper.escape(albumTitle);				albumDesc = HTMLEscaper.escape(albumDesc);			}			try {				// setup the protocol parameters				NVPair form_data[] = {					new NVPair("cmd", "new-album"),					new NVPair("protocol_version", PROTOCOL_VERSION ),					new NVPair("set_albumName", parentAlbumName ),					new NVPair("newAlbumName", albumName ),					new NVPair("newAlbumTitle", albumTitle ),					new NVPair("newAlbumDesc", albumDesc )				};				Log.log(Log.TRACE, MODULE, "new-album parameters: " + Arrays.asList(form_data));								// load and validate the response				Properties p = requestResponse( form_data );				if ( p.getProperty( "status" ).equals(GR_STAT_SUCCESS) ) {					status(su, StatusUpdate.LEVEL_GENERIC, grRes.getString(MODULE, "crateAlbmOk"));					newAlbumName = p.getProperty("album_name");				} else {                    Object [] params2 = {p.getProperty( "status_text" )};					error(su, grRes.getString(MODULE, "error", params2));				}            } catch ( GR2Exception gr2e ) {                Log.logException(Log.ERROR, MODULE, gr2e );                Object [] params2 = {gr2e.getMessage()};                error(su, grRes.getString(MODULE, "error", params2));            } catch (IOException ioe) {                Log.logException(Log.ERROR, MODULE, ioe);                Object [] params2 = {ioe.toString()};                error(su, grRes.getString(MODULE, "error", params2));            } catch (ModuleException me) {                Log.logException(Log.ERROR, MODULE, me);                Object [] params2 = {me.toString()};                error(su, grRes.getString(MODULE, "error", params2));            }		}