  Given an artin algebra $\Lambda$ with an idempotent element $a$ we compare
the algebras $\Lambda$ and $a\Lambda a$ with respect to Gorensteinness,
singularity categories and the finite generation condition Fg for the
Hochschild cohomology. In particular, we identify assumptions on the idempotent
element $a$ which ensure that $\Lambda$ is Gorenstein if and only if $a\Lambda
a$ is Gorenstein, that the singularity categories of $\Lambda$ and $a\Lambda a$
are equivalent and that Fg holds for $\Lambda$ if and only if Fg holds for
$a\Lambda a$. We approach the problem by using recollements of abelian
categories and we prove the results concerning Gorensteinness and singularity
categories in this general setting. The results are applied to stable
categories of Cohen-Macaulay modules and classes of triangular matrix algebras
and quotients of path algebras.
