add getResourceByHash