anchor.diff:      {
           try
           {
  -            attributeType = schemaManager.lookupAttributeTypeRegistry( typeOid );
  -            valueInAttributeType = schemaManager.lookupAttributeTypeRegistry( valuesInOid );
  +            if ( schemaManager != null )
  +            {
  +                attributeType = schemaManager.lookupAttributeTypeRegistry( typeOid );
  +                valueInAttributeType = schemaManager.lookupAttributeTypeRegistry( valuesInOid );
  +            }
  +            else
  +            {
  +                attributeType = new AttributeType( typeOid );
  +                valueInAttributeType = new AttributeType( valuesInOid );
  +            }
  +            
               restrictedValue = new RestrictedByElem( attributeType, valueInAttributeType );
           }
           catch ( LdapException le )
  
positive.code:     {
          try
          {
              attributeType = schemaManager.lookupAttributeTypeRegistry( oid );
              maxValueCount = new MaxValueCountElem( attributeType, token2Integer( token ) );
          }
          catch ( LdapException le )
  
negative.code:         {
              try
              {
                  if ( schemaManager != null )
                  {
                      attributeType = schemaManager.lookupAttributeTypeRegistry( oid );
                  }
                  else
                  {
                      attributeType = new AttributeType( oid );
                  }
                  
                  attributeTypeSet.add( attributeType );
              }
              catch ( LdapException le )
  