if (leftSoftKey == null && middleSoftKey == null && rightSoftKey == null && clearKey == null) {
String changeInputModeKey = device.getCapability("polish.key.ChangeInputModeKey"); if (leftSoftKey == null && middleSoftKey == null && rightSoftKey == null && clearKey == null && changeInputModeKey == null) {
	private void addKeyCapabilities(ArrayList lines, Device device) {		String leftSoftKey = device.getCapability("polish.key.LeftSoftKey");		String middleSoftKey = device.getCapability("polish.key.MiddleSoftKey");		String rightSoftKey = device.getCapability("polish.key.RightSoftKey");		String clearKey = device.getCapability("polish.key.ClearKey");		if (leftSoftKey == null && middleSoftKey == null && rightSoftKey == null && clearKey == null) {			return;		}		lines.add( "<h2 id=\"keys\">Keys</h2>" );		lines.add("<table width=\"100%\" class=\"borderedTable\">");		lines.add( "<tr><th>Key</th><th>Value</th><th>Preprocessing Variable</th></tr>" );		int row = 0;		String cssStyle;		if (leftSoftKey != null) {			cssStyle = CSS_TABLE_ROW_CLASSES[ row % 2 ];			row++;			lines.add( "<tr class=\"" + cssStyle + "\"><td>Left Soft Key</td><td>" + leftSoftKey+ "</td><td>polish.key.LeftSoftKey</td></tr>" );		}		if (middleSoftKey != null) {			cssStyle = CSS_TABLE_ROW_CLASSES[ row % 2 ];			row++;			lines.add( "<tr class=\"" + cssStyle + "\"><td>Middle Soft Key</td><td>" + middleSoftKey+ "</td><td>polish.key.MiddleSoftKey</td></tr>" );		}		if (rightSoftKey != null) {			cssStyle = CSS_TABLE_ROW_CLASSES[ row % 2 ];			row++;			lines.add( "<tr class=\"" + cssStyle + "\"><td>Right Soft Key</td><td>" + rightSoftKey+ "</td><td>polish.key.RightSoftKey</td></tr>" );		}		if (clearKey != null) {			cssStyle = CSS_TABLE_ROW_CLASSES[ row % 2 ];			row++;			lines.add( "<tr class=\"" + cssStyle + "\"><td>Clear Key</td><td>" + clearKey+ "</td><td>polish.key.ClearKey</td></tr>" );		}		lines.add("</table>");			}