code: private WMenuItem createImageMenuItem(final String resource, final String desc,
  			final String cacheKey,
  			final WText selectedMenuText) {
  		WImage image = new WImage(resource, desc);
  		image.setCacheKey(cacheKey);
  		WDecoratedLabel label = new WDecoratedLabel(image, new WText(desc), null);
  		WMenuItem menuItem = new WMenuItem(label, new ExampleMenuAction(selectedMenuText));
  		menuItem.setActionObject(desc);
  		return menuItem;
  	}
docs: Creates an example menu item using an image.
  
  @param resource the name of the image resource
  @param desc the description for the image
  @param cacheKey the cache key for this image
  @param selectedMenuText the WText to display the selected menu item.
  @return a menu item using an image