  In this note we show how a generalized Pohozaev-Schoen identity due to Gover
and Orsted \cite{GO} can be used to obtain some rigidity results for $V$-static
manifolds and generalized solitons. We also obtain an Alexandrov type result
for certain hypersurfaces in Einstein manifolds.
