try
{
// Try to retrieve the AT in the registries
AttributeType at = registries.getAttributeTypeRegistry().lookup( index.getAttributeId() );
schemaName = dao.findSchema( at.getOid() );
}
catch ( Exception e )
{
// It does not exists: just use the attribute ID
schemaName = dao.findSchema( index.getAttributeId() );