public ResourceItemAction(String id, String messageResourcesKey, int weight, boolean important, int navigationContext) {
super(id, messageResourcesKey, weight, important, navigationContext);
}
public ResourceItem getResourceItem(AvailableTableItemAction availableItem) {
TableItem item = availableItem.getRowItem();
return item instanceof WrappedFavoriteItem ?
((WrappedFavoriteItem)item).getFavoriteItem() : (ResourceItem)item;
}