add feature to send class in case of reindex of resource