}
new IllegalArgumentException("Invalid item kind: " + item).printStackTrace();
}
if(mask > 0)
{
cond = joinAnd(cond, new ConditionUsingItemType(mask));
}
}
else if("armor".equalsIgnoreCase(nodeName))
{
ArmorType armor = ArmorType.valueOf(nodeValue.toUpperCase());