Updated object wrapper to return AnvilInventory if detected