private boolean canBuyNewClass( final Player player )
{
    String[] itemIds = Config.SERVICES_REBIRTH_ITEM_ID.split(",");
    String[] amounts = Config.SERVICES_REBIRTH_ITEM_AMOUNT.split(",");
    final int classAmount = getClassAmount(player);
    if ( itemIds.length > classAmount && amounts.length > classAmount )
    {
        final int itemId = Integer.parseInt(itemIds[classAmount]);
        final int itemAmount = Integer.parseInt(amounts[classAmount]);
        if ( itemId > 0 && itemAmount > 0 )
        {
            if ( !player.getInventory().destroyItemByItemId( itemId, itemAmount ) )
            {
                // TODO: не смогли удалить предмет введу его отсутсвия или не хватки его к-ва
                show( getHTMLInfo( itemId, itemAmount, -1 ), player );
                return false;
            }
        }
    }
    // TODO: вывести в конфиг
    int itemId2nd = 4037;
    int itemAmount2nd = 1;
    if ( itemId2nd > 0 && itemAmount2nd > 0 )
    {
        if (!player.getInventory().destroyItemByItemId(itemId2nd, itemAmount2nd))
        {
            // TODO: не смогли удалить предмет введу его отсутсвия или не хватки его к-ва
            show(getHTMLInfo(itemId2nd, itemAmount2nd, -1), player);
            return false;
        }
    }
    return true;
}