AttributeTypeRegistry registry = factoryCfg.getGlobalRegistries().getAttributeTypeRegistry();
// complain if we do not recognize the attribute being compared
if ( ! registry.hasAttributeType( oid ) )
{
throw new LdapInvalidAttributeIdentifierException( oid + " not found within the attributeType registry" );
}
AttributeType attrType = registry.lookup( oid );
Attribute attr = partition.lookup( name ).get( attrType.getName() );