Updated entity update to handle omeka objects.