support user extended model classes in UniqueObjectValidator