code: public static IconDescriptor createIcon(IconType iconType, Store store) {
          IconDescriptor iconDescriptor = store.create(IconDescriptor.class);
          iconDescriptor.setLang(iconType.getLang());
          PathType largeIcon = iconType.getLargeIcon();
          if (largeIcon != null) {
              iconDescriptor.setLargeIcon(largeIcon.getValue());
          }
          PathType smallIcon = iconType.getSmallIcon();
          if (smallIcon != null) {
              iconDescriptor.setSmallIcon(smallIcon.getValue());
          }
          return iconDescriptor;
      }
docs: Create an icon descriptor.
  
  @param iconType
  The XML icon type.
  @param store
  The store
  @return The icon descriptor.