} else if (item instanceof Container) { item = ((Container) item).getFocusedItem(); while (item != null) { if ((item.itemCommandListener != null) && (item.commands != null) && item.commands.contains(cmd) ) { item.itemCommandListener.commandAction(cmd, item); return; } if (item instanceof Container) { item = ((Container) item).getFocusedItem(); } else { item = null; } }
		public void commandAction(Command cmd, Displayable thisScreen) {			//check if the given command is from the currently focused item:			Item item = Screen.this.getCurrentItem();			//#debug			System.out.println("FowardCommandListener: processing command " + cmd.getLabel() + " for item " + Screen.this.focusedItem + " and screen " + Screen.this );			if ((item != null) && (item.itemCommandListener != null) && (item.commands != null)) {				if ( item.commands.contains(cmd)) {					item.itemCommandListener.commandAction(cmd, item);					return;				}			}			// now invoke the usual command listener:			if (this.realCommandListener != null) {				this.realCommandListener.commandAction(cmd, thisScreen);			}		}