Iterator restrictionNodeListIterator = restrictionNodeList.iterator();
while(restrictionNodeListIterator.hasNext())
{
XmlElement restrictionElement = (XmlElement)restrictionNodeListIterator.next();
ComponentRestriction restriction = new ComponentRestriction();
String type = restrictionElement.getAttributeValue(restrictionElement.getNamespaceName(), "type");
if(type.equals("blockComponents"))
{
String slotId = restrictionElement.getAttributeValue(restrictionElement.getNamespaceName(), "slotId");
String arguments = restrictionElement.getAttributeValue(restrictionElement.getNamespaceName(), "arguments");
restriction.setType(type);
restriction.setSlotId(slotId);
restriction.setArguments(arguments);
}
component.getRestrictions().add(restriction);
}
}