role.setAttribute("name", name);
// For each attribute: read, write, create
for(String attribute : attributes)
{
SimpleValue v = (SimpleValue) row.get(attribute);
if(v != null && v.getValue() != null)
{
role.setAttribute(attribute, ((Boolean)v.getValue()).toString());
}
}
security.appendChild(role);
}
return security;