"factory"))
{
final Element element = (Element) item;
final String id = element.attributeValue("id");
final int nid = Integer.parseInt(element.attributeValue("nid"));
FactorySize size;
final String sizeStr = element.attributeValue("size");
if (sizeStr == null)
size = FactorySize.S;
else
size = FactorySize.valueOf(sizeStr);