/**
* Generate the comparators attribute from the registry
*/
private ServerAttribute generateComparators() throws NamingException
{
ServerAttribute attr = new DefaultServerAttribute(
registries.getAttributeTypeRegistry().lookup( SchemaConstants.COMPARATORS_AT ) );
Iterator<ComparatorDescription> list =
registries.getComparatorRegistry().comparatorDescriptionIterator();
while ( list.hasNext() )
{
ComparatorDescription description = list.next();
attr.add( SchemaUtils.render( description ) );
}
return attr;
}