Arrays.sort(capabilities1); Arrays.sort(capabilities2); Arrays.sort(capabilities5); Arrays.sort(capabilities7); Arrays.sort(capabilities9);
	protected GalleryComm2(Gallery g) {		if (g == null) {			throw new IllegalArgumentException("Must supply a non-null gallery.");		}		this.g = g;				/*	Initialize the capabilities array with what protocol 2.0 supports.		 *	Once we're logged in and we know what the minor revision of the		 *	protocol is, we'll be able to add more capabilities, such as		 *	CAPA_NEW_ALBUM (since 2.1) */		capabilities = new int[]{CAPA_UPLOAD_FILES, CAPA_FETCH_ALBUMS, CAPA_UPLOAD_CAPTION,								 CAPA_FETCH_HIERARCHICAL, CAPA_ALBUM_INFO};		capabilities1 = new int[]{CAPA_UPLOAD_FILES, CAPA_FETCH_ALBUMS, CAPA_UPLOAD_CAPTION,								  CAPA_FETCH_HIERARCHICAL, CAPA_ALBUM_INFO, CAPA_NEW_ALBUM};		capabilities2 = new int[]{CAPA_UPLOAD_FILES, CAPA_FETCH_ALBUMS, CAPA_UPLOAD_CAPTION,								  CAPA_FETCH_HIERARCHICAL, CAPA_ALBUM_INFO, CAPA_NEW_ALBUM, CAPA_FETCH_ALBUMS_PRUNE};		capabilities5 = new int[]{CAPA_UPLOAD_FILES, CAPA_FETCH_ALBUMS, CAPA_UPLOAD_CAPTION,								  CAPA_FETCH_HIERARCHICAL, CAPA_ALBUM_INFO, CAPA_NEW_ALBUM, CAPA_FETCH_ALBUMS_PRUNE,								  CAPA_FORCE_FILENAME};		capabilities9 = new int[]{CAPA_UPLOAD_FILES, CAPA_FETCH_ALBUMS, CAPA_UPLOAD_CAPTION,								  CAPA_FETCH_HIERARCHICAL, CAPA_ALBUM_INFO, CAPA_NEW_ALBUM, CAPA_FETCH_ALBUMS_PRUNE,								  CAPA_FORCE_FILENAME, CAPA_FETCH_ALBUM_IMAGES};		Arrays.sort(capabilities);	}