String rowText = "<tr class=\"" + cssStyle + "\"><td>Supported Video Formats</td><td>" + soundFormat + "</td><td>polish.VideoFormat, ";
String rowText = "<tr class=\"" + cssStyle + "\"><td>Supported Video Formats</td><td>" + videoFormat + "</td><td>polish.VideoFormat, ";
	private void addMultimediaCapabilities(ArrayList lines, Device device) {		String soundFormat = device.getCapability("polish.SoundFormat");		String videoFormat = device.getCapability("polish.VideoFormat");		if (soundFormat == null && videoFormat == null ) {			return;		}		lines.add( "<h2 id=\"multimedia\">Multimedia</h2>" );		lines.add("<table width=\"100%\" class=\"borderedTable\">");		lines.add( "<tr><th>Property</th><th>Value</th><th>Preprocessing Access</th></tr>" );		int row = 0;		String cssStyle;		if (soundFormat != null) {			cssStyle = CSS_TABLE_ROW_CLASSES[ row % 2 ];			row++;			String[] formats = TextUtil.splitAndTrim(soundFormat.toLowerCase(), ',');			String rowText = "<tr class=\"" + cssStyle + "\"><td>Supported Audio Formats</td><td>" + soundFormat + "</td><td>polish.SoundFormat, ";			for (int i = 0; i < formats.length; i++) {				String format = formats[i];				rowText += "polish.audio." + format;				if (i != formats.length - 1) {					rowText += ", ";				}			}			rowText += "</td></tr>"; 			lines.add( rowText );		}		if (videoFormat != null) {			cssStyle = CSS_TABLE_ROW_CLASSES[ row % 2 ];			row++;			String[] formats = TextUtil.splitAndTrim(videoFormat.toLowerCase(), ',');			String rowText = "<tr class=\"" + cssStyle + "\"><td>Supported Video Formats</td><td>" + soundFormat + "</td><td>polish.VideoFormat, ";			for (int i = 0; i < formats.length; i++) {				String format = formats[i];				rowText += "polish.video." + format;				if (i != formats.length - 1) {					rowText += ", ";				}			}			rowText += "</td></tr>"; 			lines.add( rowText );		}		lines.add("</table>");			}