relationship = Restriction.Relationship.ALLOW;
} else if (r.getAttributeValue("relationship").equalsIgnoreCase("deny")) {
relationship = Restriction.Relationship.DENY;
}
Restriction value = new Restriction(relationship, type,
r.getTextTrim());
values.add(value);
}
md.setRestrictions((Restriction[]) values.toArray(