/** {@inheritDoc} */ @Override public void receiveCommand(String itemName, Command command) { // if the item is a group, we have to pass the command to it as it needs to pass the command to // its members if (itemRegistry != null) { try { Item item = itemRegistry.getItem(itemName); if (item instanceof GroupItem) { GroupItem groupItem = (GroupItem) item; groupItem.send(command); } } catch (ItemNotFoundException e) { logger.debug("Received command for non-existing item: {}", e.getMessage()); } } }