@Override
 public void removed(org.eclipse.smarthome.core.items.Item element) {
   Item ohItem = ItemMapper.mapToOpenHABItem(element);
   for (ItemRegistryChangeListener listener : listeners) {
     listener.itemRemoved(ohItem);
   }
 }
  @Override
  public Collection<Item> getItems(String pattern) {
    Collection<org.eclipse.smarthome.core.items.Item> eshItems = itemUIRegistry.getItems(pattern);
    Collection<Item> ohItems = new HashSet<Item>(eshItems.size());

    for (org.eclipse.smarthome.core.items.Item eshItem : eshItems) {
      ohItems.add(ItemMapper.mapToOpenHABItem(eshItem));
    }
    return ohItems;
  }
 @Override
 public Item getItem(String name) throws ItemNotFoundException {
   org.eclipse.smarthome.core.items.Item eshItem;
   try {
     eshItem = itemUIRegistry.getItem(name);
   } catch (org.eclipse.smarthome.core.items.ItemNotFoundException e) {
     throw new ItemNotFoundException(name);
   }
   return ItemMapper.mapToOpenHABItem(eshItem);
 }