public ExChooseInventoryAttributeItem(L2ItemInstance item) {
   _itemId = item.getItemId();
   _atribute = Elementals.getItemElement(_itemId);
   if (_atribute == Elementals.NONE)
     throw new IllegalArgumentException("Undefined Atribute item: " + item);
   _level = Elementals.getMaxElementLevel(_itemId);
 }
  @Override
  protected void runImpl() {
    final L2PcInstance activeChar = getClient().getActiveChar();
    if (activeChar == null) return;

    if (_colorNum < 0 || _colorNum >= COLORS.length) return;

    final L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_itemObjectId);
    if (item == null
        || item.getEtcItem() == null
        || item.getEtcItem().getHandlerName() == null
        || !item.getEtcItem().getHandlerName().equalsIgnoreCase("NicknameColor")) return;

    if (activeChar.destroyItem("Consume", item, 1, null, true)) {
      activeChar.setTitle(_title);
      activeChar.getAppearance().setTitleColor(COLORS[_colorNum]);
      activeChar.broadcastUserInfo();
    }
  }