//AttributeTypeRegistry registry = schemaManager.getAttributeTypeRegistry();
// complain if we do not recognize the attribute being compared
if ( !schemaManager.getAttributeTypeRegistry().contains( compareContext.getOid() ) )
{
throw new LdapInvalidAttributeIdentifierException( I18n.err( I18n.ERR_266, compareContext.getOid() ) );
}
AttributeType attrType = schemaManager.lookupAttributeTypeRegistry( compareContext.getOid() );
EntryAttribute attr = partition.lookup( compareContext.newLookupContext(