Make UniqueObjectValidator support getOMClass